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
Related
I'm trying to install the package #truffle/hdwallet-provider .
As written in the doc, I'm running:
npm i #truffle/hdwallet-provider
Here is the error message I'm getting:
npm ERR! code 128
npm ERR! An unknown git error occurred
npm ERR! command git --no-replace-objects ls-remote ssh://git#github.com/ethereumjs/ethereumjs-abi.git
npm ERR! git#github.com: Permission denied (publickey).
npm ERR! fatal: Could not read from remote repository.
npm ERR!
npm ERR! Please make sure you have the correct access rights
npm ERR! and the repository exists.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2022-03-08T14_13_15_122Z-debug-0.log
Here are the logs:
698 verbose Linux 5.13.0-30-generic
699 verbose argv "/usr/bin/node" "/usr/bin/npm" "i" "#truffle/hdwallet-provider"
700 verbose node v14.17.6
701 verbose npm v8.5.3
702 error code 128
703 error An unknown git error occurred
704 error command git --no-replace-objects ls-remote ssh://git#github.com/ethereumjs/ethereumjs-abi.git
705 error git#github.com: Permission denied (publickey).
705 error fatal: Could not read from remote repository.
705 error
705 error Please make sure you have the correct access rights
705 error and the repository exists.
706 verbose exit 128
707 timing npm Completed in 6266ms
708 verbose unfinished npm timer reify 1646748520075
709 verbose unfinished npm timer reify:loadTrees 1646748520084
710 verbose code 128
711 error A complete log of this run can be found in:
711 error /root/.npm/_logs/2022-03-08T14_08_39_958Z-debug-0.log
My node version:
v14.17.6
My NPM version:
v8.5.3
Actually, it's a well-known bug.
https://github.com/trufflesuite/truffle/issues/2852
Using this solved the problem:
npm i #truffle/hdwallet-provider#next
For other people coming here for the same bug with another package, check this SO post:
npm install error code 128
Try npm config set legacy-peer-deps true, that worked for me.
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 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
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 ]
As title states I cannot install 'nowjs' with npm on my OSX ML 10.8.
Before to make anyone shout out :) I have xCode installed AND command line utilities.
These are lines from npm-log with error messages.
334 verbose true,/Volumes/Macintosh HD2/Library/Node/TestExpress/node_modules,/Volumes/Macintosh HD2/Library/Node/TestExpress/node_modules unbuild now#0.8.1
335 info postuninstall now#0.8.1
336 error node-proxy#0.6.0 install: `node-gyp configure build`
336 error `sh "-c" "node-gyp configure build"` failed with 1
337 error Failed at the node-proxy#0.6.0 install script.
337 error This is most likely a problem with the node-proxy package,
337 error not with npm itself.
337 error Tell the author that this fails on your system:
337 error node-gyp configure build
337 error You can get their info via:
337 error npm owner ls node-proxy
337 error There is likely additional logging output above.
338 error System Darwin 12.2.0
339 error command "node" "/usr/local/bin/npm" "install" "now"
340 error cwd /Volumes/Macintosh HD2/Library/Node/TestExpress
341 error node -v v0.8.14
342 error npm -v 1.1.65
343 error code ELIFECYCLE
344 verbose exit [ 1, true ]
Anyone can point me to the righr direction please?
Sometimes node-proxy (so in this case nowjs), needs to be installed with sudo.