javascript - npm install couldnt install angularjs libraries -


i have installed mean.io , ran sudo npm install. following commands in sequence

sudo npm install -g meanio mean init yournewapp cd yournewapp sudo npm install -g bower sudo npm install 

it supposed download , install angularjs libraries public/system/lib. after doing above steps public /system/lib not created due when start application error

events.js:72         throw er; // unhandled 'error' event               ^ error: enoent, open '/home/santhosh/dev/scaleqa/mean_tut/old mean/temp/myapp/public/system/lib/bootstrap/dist/css/bootstrap.css' [nodemon] app crashed - waiting file changes before starting... 

is npm/angularjs server being down. have faced problem earlier got fixed on 2nd try , didn't bother more research. became big issue when try pull repo cloud , start application. public/system/lib added in .gitignore default , expected created during npm install.

i following warnings sudo npm install

npm warn package.json mean-connect-mongo@0.4.3 no repository field. npm warn cannot run in wd mean@0.3.3 node node_modules/bower/bin/bower install (wd=/home/santhosh/dev/scaleqa/mean_tut/old mean/temp/myapp) 

this link package.json

the problem maybe related running npm install sudo, can cause problems. as mentioned in stack overflow question, can worked around in couple ways. because looks being run home directory, shouldn't need run npm install root.

try issue same commands, last without sudo:

sudo npm install -g meanio mean init yournewapp cd yournewapp sudo npm install -g bower npm install 

note reason may need run npm install -g <package> using sudo because default npm uses /usr/local global installs, can restricted directory. however, when install package locally (without -g flag) should not need run root.


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -