Deployment Issue in Mean Io on Azure - azure

I have deployed the mean app on azure ubuntu box. I have installed all the modules and dependencies of node using npm install and bower dependencies using bower install. The app in logs show that it is started on port 3000 but when I see the browser console it show this error:
aggregated.js:11 Uncaught Error: [$injector:modulerr]
http://errors.angularjs.org/1.5.5/$injector/modulerr?p0=mean&p1=Error%3A%20…
http%3A%2F%2Fsecondreveiw.cloudapp.net%2Fmodules%2Faggregated.js%3A26%3A19)
I have aggregated true in my development.js config file.
By the way the app is working fine locally on my windows machine.

Related

Installed module not found in electron js

I want to contribute to an open source project called Joplin. But I am not able to setup the development environment.
I have followed the setup instructions as said here . Everything get installed but and when I launch the application in packages/app-desktop by running npm run start(it's build with electron.js) , the application get started but logs this error in the console, due to this error UI is not loaded:
I have checked that module #joplin/fork-htmlparser2 has correctly installed by running npm list #joplin/fork-htmlparser2 command
I do not understand why the error logs say cannot find module #joplin/fork-htmlparser2 since the npm command is saying it's installed.
My OS: Ubuntu 20.04,
Node: v16.0.0,
Npm:7.10.0,

Deployment on IIS of Nestjs application

I have tried to deploy my Nestjs deploying on IIS server. I have configured iisnode on IIS that works fine for express application but I am getting errors for missing modules for nestjs. I have tried following commands for building production package
npm run start:prod
and
npm run webpack
but failed to deploy on IIS. How can I build a deployment package?? so I can deploy. I am new with nodejs and Nestjs.
Look at the project's package.json. You'll see that start:prod is a script that runs node on the compiled output of the project. You get the compiled output by running:
npm run prestart:prod
that will re-build your app into the dist folder.
So you can
Zip up the dist folder
deploy to the target host
Unzip it
Try running iisnode on it
let me know how that works

How do I run npm package commands on Heroku

I am using node-mongo-seeds in my express app to seed data. I deployed the app to Heroku and SSHed into the dyno, but running 'seed' command gives me command not found.

Roostagram node.js IIS

I've been successful in installing node.js and iisnode on my windows server running IIS. I just got back from the jQuery/ROOST conference and I'm playing with the app that they put together. For whatever reason after I've cloned the git repo and installed all packages with npm I'm still not able to get the app running.
I am able to run the app if I run grunt through the command prompt and it starts the test webserver on port 8000, however I would like IIS run the app and handle all requests...
Thanks!
p.s. here is the repo https://github.com/bocoup/roostagram.git

Can't deploy nodejs app to heroku and openshift

I can't deploy my ExpressJS app to Heroku or OpenShift hosting. On my MacBook Pro all works perfectly, but it go to crash when I try to deploy it on hosting.
error Error: shasum check failed for /app/tmp/npm-403-gj-8PMyB/1387967953013-0.7812028499320149/tmp.tgz
344 error Expected: f99cd60b91df7e6669c59ac2b55c4bfc65ff9494
344 error Actual: c4a5f6cf7f807d89d1aa0babe686b434426206b6
openshift log, heroku log
I had the same problem on Heroku before that I did not figure out what caused it.But this is how I fixed mine:
first remove the dependency (in your case it could be process-pwd ) from package.json file
open the terminal app on your mac and go to you project folder
run the install command for the package that fails
npm install moduleName
this will install a local copy of the module in your project folder inside node_modules folder
deploy the app again
Hope this works but you have to figure out which module actually fails :)

Resources