Error when doing npm install [Angular 2] - node.js

Hello all I am getting the following error when doing npm install I have reinstalled my nodejs also but that is not working, I am not behind the firewall
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents#^1.0.0 (node_modules\ch
okidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents#
1.0.17: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"
})
npm WARN angular2-quickstart#1.0.0 No description
npm WARN angular2-quickstart#1.0.0 No repository field.
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Satish Kumar\\Ap
pData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.9.5
npm ERR! npm v4.1.2
npm ERR! path C:\Users\Satish Kumar\Desktop\angular2-course-master\node_modules\
.staging\invert-kv-e1d023cb\package.json.143624776
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\Satish Kumar\De
sktop\angular2-course-master\node_modules\.staging\invert-kv-e1d023cb\package.js
on.143624776' -> 'C:\Users\Satish Kumar\Desktop\angular2-course-master\node_modu
les\.staging\invert-kv-e1d023cb\package.json'
npm ERR! at Error (native)
npm ERR! { Error: EPERM: operation not permitted, rename 'C:\Users\Satish Kumar
\Desktop\angular2-course-master\node_modules\.staging\invert-kv-e1d023cb\package
.json.143624776' -> 'C:\Users\Satish Kumar\Desktop\angular2-course-master\node_m
odules\.staging\invert-kv-e1d023cb\package.json'
npm ERR! at Error (native)
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\Satish Kumar\\Desktop\\angular2-course-master\\node
_modules\\.staging\\invert-kv-e1d023cb\\package.json.143624776',
npm ERR! dest: 'C:\\Users\\Satish Kumar\\Desktop\\angular2-course-master\\node
_modules\\.staging\\invert-kv-e1d023cb\\package.json',
npm ERR! parent: 'angular2-quickstart' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Satish Kumar\Desktop\angular2-course-master\npm-debug.log
Somehow I fixed the above error by running the npm install in admin mode
but, now when doing npm start I am getting the error listed below please help
C:\Users\Satish Kumar\Desktop\angular2-course-master>npm start
> angular2-quickstart#1.0.0 start C:\Users\Satish Kumar\Desktop\angular2-course-
master
> tsc && concurrently "npm run tsc:w" "npm run lite"
app/posts/posts.component.ts(6,20): error TS2307: Cannot find module 'underscore
'.
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Satish Kumar\\Ap
pData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v6.9.5
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart#1.0.0 start: `tsc && concurrently "npm run tsc:w" "
npm run lite" `
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular2-quickstart#1.0.0 start script 'tsc && concurrent
ly "npm run tsc:w" "npm run lite" '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-quickstart p
ackage,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc && concurrently "npm run tsc:w" "npm run lite"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Satish Kumar\Desktop\angular2-course-master\npm-debug.log

Related

spectral-cli instalation in ubuntu getting failed

npm install -g #stoplight/spectral-cli
Giving below error
npm WARN node-fetch#2.6.8 requires a peer of encoding#^0.1.0 but none was installed.
npm ERR! Linux 5.4.0-1094-azure
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "#stoplight/spectral-cli"
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib/node_modules/.staging/#types/node-76508090/package.json
npm ERR! code ENOTDIR
npm ERR! errno -20
npm ERR! syscall open
npm ERR! ENOTDIR: not a directory, open '/usr/local/lib/node_modules/.staging/#types/node-76508090/package.json'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /azp/npm-debug.log
npm ERR! code 1

install "npm install -g ionic#latest cordova" but I get errors

When I run the below command in cordova,
npm install -g ionic#latest cordova
I get the following errors -
npm WARN optional Skipping failed optional dependency /ionic/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.1.2
npm ERR! Linux 4.4.0-43-Microsoft
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "ionic#latest" "cordova"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! path /usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/dezalgo
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/cordova/node_modules/npm/
node_modules/dezalgo'
npm ERR! at Error (native)
npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/cordova/node_modules/
npm/node_modules/dezalgo']
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/usr/local/lib/node_modules/cordova/node_modules/npm/node_modules/dezalgo' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! /home/oj1125/npm-debug.log
Can anyone help me with these errors?

Error in "npm run dev" marzipano ' s demos

I'm trying to install marzipano: https://github.com/google/marzipano
when I execute command line "npm run dev", it happen:
$ npm run dev
> marzipano#0.5.2 dev C:\Users\Clavis\Desktop\marzipano-master
> scripts/dev
'scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Clavis\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
npm ERR! node v6.9.4
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! marzipano#0.5.2 dev: `scripts/dev`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the marzipano#0.5.2 dev script 'scripts/dev'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the marzipano package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! scripts/dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs marzipano
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls marzipano
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Clavis\Desktop\marzipano-master\npm-debug.log
npm-debug.log: https://app.box.com/s/f0yxb2hiu49gp7rsgv5qm26auftm1zka
how to solve this error?

'npm start' error in ubuntu,but it's ok in windows 7

How can I find the problem and fix it? Here is the error message:
npm ERR! Linux 3.13.0-32-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v6.2.2
npm ERR! npm v3.9.5
npm ERR! code ELIFECYCLE
npm ERR! aa-server#1.0.0 start: `node ./bin/www`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the aa-server#1.0.0 start script 'node ./bin/www'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the aa-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./bin/www
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs aa-server
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls aa-server
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /aa-server/npm-debug.log

npm install error when following Angular2 5 min quickstart

I get an error when following the Angular2 5 min quick start. How can I get past it?
vagrant#vagrant-ubuntu-trusty-64:/vagrant/angular2-tutorial$ sudo npm install angular2-quickstart#1.0.0 /vagrant/angular2-tutorial
└── foxy#11.1.4 extraneous
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents#1.0.6
npm WARN angular2-quickstart#1.0.0 No description
npm WARN angular2-quickstart#1.0.0 No repository field.
npm ERR! Linux 3.13.0-74-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install"
npm ERR! node v5.4.0
npm ERR! npm v3.5.2
npm ERR! path /vagrant/angular2-tutorial/node_modules/.staging/lodash-496d43d7
npm ERR! code EPERM
npm ERR! errno -1
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename '/vagrant/angular2-tutorial/node_modules/.staging/lodash-496d43d7' -> '/vagrant/angular2-tutorial/node_modules/browser-sync/node_modules/lodash'
npm ERR! at destStatted (/usr/local/lib/node_modules/npm/lib/install/action/finalize.js:25:7)
npm ERR! at FSReqWrap.oncomplete (fs.js:82:15)
npm ERR!
npm ERR! Error: EPERM: operation not permitted, rename '/vagrant/angular2-tutorial/node_modules/.staging/lodash-496d43d7' -> '/vagrant/angular2-tutorial/node_modules/browser-sync/node_modules/lodash'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename '/vagrant/angular2-tutorial/node_modules/.staging/lodash-496d43d7' -> '/vagrant/angular2-tutorial/node_modules/browser-sync/node_modules/lodash'] parent: 'browser-sync' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Linux 3.13.0-74-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/local/bin/npm" "install"
npm ERR! node v5.4.0
npm ERR! npm v3.5.2
npm ERR! path npm-debug.log.727051537
npm ERR! code ETXTBSY
npm ERR! errno -26
npm ERR! syscall rename
npm ERR! ETXTBSY: text file is busy, rename 'npm-debug.log.727051537' -> 'npm-debug.log'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /vagrant/angular2-tutorial/npm-debug.log
Here is the error log:
https://www.dropbox.com/s/xr6ha3z4re0npvi/npm-debug.log.727051537?dl=0
It looks like this is the permission issue. The npm is configured to put downloaded modules to a directory that is not authorized.
You can configure npm to install the modules to a custom directory with its prefix configuration.
Refer to following articles:
Use one of these techniques to install node and npm without having to sudo
Installing Node and npm

Resources