I am using Mac machine
Running the following command which i got from phonegap site.
sudo npm install -g phonegap
But getting the error as follows
8398 error Error: ENOENT, lstat
'/usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/archiver/node_modules/readable-stream/lib/_stream_writable.js'
8399 error If you need help, you may report this log at: 8399 error
http://github.com/isaacs/npm/issues 8399 error or email it to: 8399
error 8400 error System Darwin 14.0.0 8401
error command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
"-g" "phonegap" 8402 error cwd /Users/bunty 8403 error node -v v0.10.0
8404 error npm -v 1.2.14 8405 error path
/usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/archiver/node_modules/readable-stream/lib/_stream_writable.js 8406 error fstream_path
/usr/local/lib/node_modules/phonegap/node_modules/connect-phonegap/node_modules/archiver/node_modules/readable-stream/lib/_stream_writable.js 8407 error fstream_type File 8408 error fstream_class FileWriter 8409
error code ENOENT 8410 error errno 34 8411 error fstream_stack
/usr/local/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
8411 error fstream_stack Object.oncomplete (fs.js:93:15) 8412 verbose
exit [ 34, true ]
Can anyone help on this?
Thanks in advance
Related
I'm trying to build a new NS8 project. I have another NS6.5 project on my computer, but it's in a different folder. When running npm install -g nativescript in a different folder, I get the following error
2323 verbose argv "/Users/.../.nvm/versions/node/v16.4.0/bin/node" "/Users/.../.nvm/versions/node/v16.4.0/bin/npm" "install" "-g" "nativescript"
2324 verbose node v16.4.0
2325 verbose npm v7.18.1
2326 error code ENOENT
2327 error syscall lstat
2328 error path /Users/.../.npm/_cacache/content-v2/sha1/07/e1/3c3118154c53893d3be7a7e08d990e86d859
2329 error errno -2
2330 error enoent ENOENT: no such file or directory, lstat '/Users/.../.npm/_cacache/content-v2/sha1/07/e1/3c3118154c53893d3be7a7e08d990e86d859'
2331 error enoent This is related to npm not being able to find a file.
2332 verbose exit -2
I'm not sure why this is erroring out. Any help would be appreciated. Thanks
I solved this by installing node version 14.17.1 (v6.14.13)
When i try to install Node-Red with
sudo npm install -g --unsafe-perm node-red
i get an Error:
GET https://registry.npmjs.org/node-red
GET https://registry.npmjs.org/node-red
GET https://registry.npmjs.org/node-red
Error: CERT_UNTRUSTED
at TLSSocket.<anonymous> (_tls_wrap.js:644:36)
at TLSSocket.EventEmitter.emit (events.js:100:17)
at TLSSocket._finishInit (_tls_wrap.js:275:8)
If you need help, you may report this log at:
<http://github.com/isaacs/npm/issues>
or email it to:
<npm-#googlegroups.com>
System Linux 3.14.60-fslc-imx6-sr
command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "--unsafe-perm" "node-red"
cwd /home/debian
node -v v0.11.7
npm -v 1.3.8
Additional logging details can be found in:
/home/debian/npm-debug.lgo
not ok code 0
Btw. the versions of node and npm seems to be wrong, i have node v10.13.0 and npm 6.4.1
although in the error message it shows something else (?)
I already installed node.js, npm and gulp on my computer (windows 7), but when I'm trying to install gulp on my project's folder with the "npm update --save-dev" commande line, I got an error and I don't know how to fix this. But when I do all these steps on my portable (windows 10) it works perfectly...
Here's the log of the error :
11930 warn test#1.0.0 No repository field.
11931 verbose stack Error: ENOENT: no such file or directory, rename
'G:\Desktop\TFA\node_modules\#gulp-sourcemaps\identity-map\node_modules\source-map' -> 'G:\Desktop\TFA\node_modules\#gulp-sourcemaps\identity-map\node_modules.source-map.DELETE'
11932 verbose cwd G:\Desktop\TFA
11933 verbose Windows_NT 6.1.7601
11934 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "update" "--save-dev"
11935 verbose node v9.9.0
11936 verbose npm v5.6.0
11937 error path G:\Desktop\TFA\node_modules\#gulp-sourcemaps\identity-map\node_modules\source-map
11938 error code ENOENT
11939 error errno -4058
11940 error syscall rename
11941 error enoent ENOENT: no such file or directory, rename 'G:\Desktop\TFA\node_modules\#gulp-sourcemaps\identity-map\node_modules\source-map' -> 'G:\Desktop\TFA\node_modules\#gulp-sourcemaps\identity-map\node_modules.source-map.DELETE'
11942 error enoent This is related to npm not being able to find a file.
11943 verbose exit [ -4058, true ]
I am trying to install bower in windows 7:
npm install bower -g
It returns with this error:
error Error: No compatible version found: bower-endpoint-parser#'^0.2.2'
1073 error Valid install targets:
1073 error ["0.1.0-rc.1","0.1.0","0.2.0","0.2.1","0.2.2"]
1073 error at installTargetsError (C:\Users\myname\node-0.10.4\node-0.10.4\node_modules\npm\lib\cache.js:685:10)
1073 error at C:\Users\myname\node-0.10.4\node-0.10.4\node_modules\npm\lib\cache.js:607:10
1073 error at saved (C:\Users\myname\node-0.10.4\node-0.10.4\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
1073 error at Object.oncomplete (fs.js:107:15)
1074 error If you need help, you may report this log at:
1074 error <http://github.com/isaacs/npm/issues>
1074 error or email it to:
1074 error <npm-#googlegroups.com>
1075 error System Windows_NT 6.1.7601
1076 error command "C:\\Users\\myname\\node-0.10.4\\node-0.10.4\\\\node.exe" "C:\\Users\\myname\\node-0.10.4\\node-0.10.4\\node_modules\\npm\\bin\\npm-cli.js" "install" "bower"
1077 error cwd C:\Users\myname\BowerJS
1078 error node -v v0.10.4
1079 error npm -v 1.2.18
You have a pretty old version of NPM (1.2). NPM notoriously has problems with Windows, e.g. because of long file paths which are not allowed on Windows.
First try cleaning the cache and retrying with npm -g cache clean and then update npm before other steps
Im trying to install express through npm:
npm install express -g
but it doesnt want to work:(
System is Windows XP
npm-debug.log says :
3672 error Error: read ECONNRESET
3672 error at errnoException (net.js:878:11)
3672 error at TCP.onread (net.js:539:19)
3673 error If you need help, you may report this log at:
3673 error <http://github.com/isaacs/npm/issues>
3673 error or email it to:
3673 error <npm-#googlegroups.com>
3674 error System Windows_NT 5.1.2600
3675 error command "E:\\nodejs\\\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-
cli.js" "install" "express" "-g"
3676 error cwd C:\DOCUME~1\Admin
3677 error node -v v0.10.2
3678 error npm -v 1.2.16
3679 error syscall read
3680 error code ECONNRESET
3681 error errno ECONNRESET
3682 verbose exit [ 1, true ]