I am creating a real time chat app using nodejs , but on giving the command npm i simple-nodejs-chat i am getting following :
D:\chat>npm i simple-nodejs-chat
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "i" "simple-nodejs-chat"
npm ERR! node v7.1.0
npm ERR! npm v3.10.9
npm ERR! code ENOSELF
npm ERR! Refusing to install simple-nodejs-chat as a dependency of itself
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! D:\chat\npm-debug.log
kindly help .
Related
While solving the issues to run story book in my create reat app, I have changed the version of my npm to 3.10.10. Then after that, while trying to run npm like npm run start, I am getting the following error:
npm ERR! Windows_NT 10.0.18363
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\name\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "npm"
npm ERR! node v12.18.3
npm ERR! npm v3.10.10
npm ERR! cb.apply is not a function
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! E:\Career_Assistant_Project\react-server\npm-debug.log
Now I am not able to run my code. Can anyone help me figure out this issue?
I'm getting this error when try to install firebase-tools:
PS D:\Projects\Uni\firebase-functions-hello-world> npm install -g firebase-tools
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\
\npm-cli.js" "install" "-g" "firebase-tools"
npm ERR! node v6.10.0
npm ERR! npm v3.10.10
npm ERR! shasum check failed for C:\Users\AdMin\AppData\Local\Temp\npm-8448-fdc26aac\registry.npmjs.org
\jju\-\jju-1.3.0.tgz
npm ERR! Expected: dadd9ef01924bc728b03f2f7979bdbd62f7a2aaa
npm ERR! Actual: 2a552ad636b1e23979c677ab9f360cf1ac578f89
npm ERR! From: https://registry.npmjs.org/jju/-/jju-1.3.0.tgz
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! D:\Projects\Uni\firebase-functions-hello-world\npm-debug.log
PS D:\Projects\Uni\firebase-functions-hello-world>
i also posted this issue on github which is https://github.com/firebase/firebase-tools/issues/271
Run the command again logged in as administrator.
I didn't do anything special just copied the package.json from the quickstart and tried to run npm install.
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v6.8.1
npm ERR! npm v3.10.8
npm ERR! code E500
npm ERR! ArgumentException String is not a valid semantic version.: npm
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! C:\angular2\hello-world\npm-debug.log
Am I doing something wrong?
I had the wrong npm registry. It can be set globally or in each project using .npmrc.
It should be registry=https://registry.npmjs.org/
After this command :
npm install -g cordova
I have these errors :
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.2.0
npm ERR! npm v3.8.9
npm ERR! shasum check failed for C:\Users\username\AppData\Local\Temp\npm-4132-192
bb5ac\registry.npmjs.org\npm\-\npm-2.15.8.tgz
npm ERR! Expected: 9ada0f2f8a17575cf0238ffac79ebd051236bf66
npm ERR! Actual: 19abf2c8a102ec9b70c96675e09cd15a189bab3b
npm ERR! From: http://registry.npmjs.org/npm/-/npm-2.15.8.tgz
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! C:\dev\primeng\npm-debug.log
Anyone knows why and how to fix it ?
Thanks by advance !
According to npm issue #2701 this could possibly be a result of you using an unstable version of npm, instead go for a stable version of npm, according to your logs, npm is the issue, not cordova.
I am new to nodejs, and I have just installed it in my Windows 7 PC. The next thing I try to do is to install express.js package via npm npm install express --save, and I got following error messages
npm ERR! fetch failed http://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.6.tgz
npm ERR! Error: 403 Forbidden
npm ERR! at WriteStream.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\fetch.js:58:12)
npm ERR! at WriteStream.emit (events.js:117:20)
npm ERR! at evalmachine.<anonymous>:1610:14
npm ERR! at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:102:5
npm ERR! at Object.oncomplete (evalmachine.<anonymous>:108:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express" "--save"
npm ERR! cwd C:\temp\NodeJS_POC
npm ERR! node -v v0.10.35
npm ERR! npm -v 1.4.28
npm ERR! not ok code 0
Anybody knows why?
It turns to be our proxy server actually blocks http://registry.npmjs.org/ipaddr.js/-/ipaddr.js-0.1.6.tgz