npm WARN enoent ENOENT: no such file or directory, open '<root>/node_modules/supertest/package.json'
I installed supertest before installing debug and it fixed this error.
Maybe make it a dependency of this module?
OS: Mac Sierra 10.12.5 Node v8.0.0.0 NPM v5.0.0
I'm having the same problem as well. I can't seem to resolve this. I've tried both with and without sudo. I do have other programs installed in my computer. Don't know if that has something to do with it. I have all of the Python Stack and Ruby Stack installed. Now trying to get all the MEAN Stack components installed.
Below is what I'm getting back. Any help would be greatly appreciated. When it talks about dependencies, I have no idea what that is.. Sorry for my poor knowledge.
TERMINAL: Jaes-MacBook-Pro:bower_install jaepark75$ sudo npm install jquery Password: npm WARN saveError ENOENT: no such file or directory, open '/Users/jaepark75/package.json' npm WARN enoent ENOENT: no such file or directory, open '/Users/jaepark75/package.json' npm WARN jaepark75 No description npm WARN jaepark75 No repository field. npm WARN jaepark75 No README data npm WARN jaepark75 No license field. npm WARN jaepark75 Invalid dependency: balanced-match undefined npm WARN jaepark75 Invalid dependency: block-stream undefined npm WARN jaepark75 Invalid dependency: brace-expansion undefined npm WARN jaepark75 Invalid dependency: concat-map undefined npm WARN jaepark75 Invalid dependency: fs.realpath undefined npm WARN jaepark75 Invalid dependency: fstream undefined npm WARN jaepark75 Invalid dependency: glob undefined npm WARN jaepark75 Invalid dependency: graceful-fs undefined npm WARN jaepark75 Invalid dependency: hammerjs undefined npm WARN jaepark75 Invalid dependency: inflight undefined npm WARN jaepark75 Invalid dependency: inherits undefined npm WARN jaepark75 Invalid dependency: materialize-css undefined npm WARN jaepark75 Invalid dependency: minimatch undefined npm WARN jaepark75 Invalid dependency: minimist undefined npm WARN jaepark75 Invalid dependency: mkdirp undefined npm WARN jaepark75 Invalid dependency: node-archiver undefined npm WARN jaepark75 Invalid dependency: once undefined npm WARN jaepark75 Invalid dependency: path-is-absolute undefined npm WARN jaepark75 Invalid dependency: rimraf undefined npm WARN jaepark75 Invalid dependency: tar undefined npm WARN jaepark75 Invalid dependency: wrappy undefined
updated 1 package in 4.539s
Hi,
I've got the same problem here and tried to run the following commands above to fix this. "Clean Cache" & "re-install". Unfortunately it didn't fix it for me. Seems to have spawned another issue.
/Users/Karbon62/.npm/_logs/2017-06-05T14_42_36_153Z-debug.log
Before running the commands to fix this, my console was giving me this error:
file:///Users/Karbon62/.npm/_logs/2017-06-05T12_47_17_209Z-debug.log
OS: Mac Sierra 10.12.5 Node v8.0.0.0 NPM v5.0.2
i've the same probelm than jimmymixer whitout sucess. If any have a idea to dig… Thank
TERMINAL: _MacBook-Air-de-happy:~ happy$ npm install airsonos -g npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: use serve-favicon module npm WARN deprecated [email protected]: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated npm WARN deprecated [email protected]: Use uuid module instead /usr/local/bin/airsonos -> /usr/local/lib/node_modules/airsonos/bin/index.js
then i installed latest "minimatch", "serve-favicon" and "react" then
TERMINAL: _MacBook-Air-de-happy:~ happy$ airsonos Searching for Sonos devices on network...
/usr/local/lib/node_modules/airsonos/node_modules/bluebird/js/main/promise.js:680
throw e;
^
Error: Internal Server Error
at maybeWrapAsError (/usr/local/lib/node_modules/airsonos/node_modules/bluebird/js/main/util.js:70:12)
at /usr/local/lib/node_modules/airsonos/node_modules/bluebird/js/main/promise_resolver.js:41:50
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/lib/logicalDevice.js:112:20
at done (/usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:126:15)
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:32:16
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/lib/logicalDevice.js:106:22
at done (/usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:126:15)
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:32:16
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:251:17
at done (/usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:126:15)
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:32:16
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:248:21
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/node_modules/async/lib/async.js:572:34
at /usr/local/lib/node_modules/airsonos/node_modules/sonos/lib/events/volumeListener.js:24:14
at Listener.
-
Create a package.json file and store it in the folder where you will install the npm package. Keep it simple for now. This npm video helped me. Also read Using a package.json for additional information. The following example satisfies the minimum requirements: { "name": "demo-app", "version": "1.0.0" }
-
Open Terminal: as @mihai-ciupina pointed out... cd to the location where you want to store the package locally. If you type ls you should see the package.json file you just created.
-
Type: npm install <package_name>. The video above discusses variations you can type.
-
I'm not sure why, but my folder also created a package-lock.json file. I will have to do some more reading on this.
Im trying to install gulp and I keep having thises issues: Ive tried many remedies including: npm install npm@latest and still no progress.
C:\Users\home>npm install npm@latest -g C:\Users\home\AppData\Roaming\npm\npm -> C:\Users\home\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
- [email protected] updated 1 package in 24.356s
C:\Users\M-Corp>npm install gulp npm WARN saveError ENOENT: no such file or directory, open 'C:\Users\home\package.json' npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\home\package.json' npm WARN home No description npm WARN home No repository field. npm WARN home No README data npm WARN home No license field.
- [email protected] updated 1 package in 2.495s
C:\Users\home>
u just need to create package.json file in the needing directory, and enter npm init. It's ok, and i tried successfully. Hope for u...
Did anyone find a solution to this yet? I highly doubt that they haven't fixed this bug yet.
Simply remove node_modules then run again 'npm install'
when i run
$ npm install express, i got the following error.
rank@rank-ThinkCentre-M73:~$ npm install express npm ERR! Linux 3.16.0-57-generic npm ERR! argv "/home/rank/.nvm/versions/node/v5.0.0/bin/node" "/home/rank/.nvm/versions/node/v5.0.0/bin/npm" "install" "express" npm ERR! node v5.0.0 npm ERR! npm v3.3.6 npm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED npm ERR! syscall connect
npm ERR! Error: connect ECONNREFUSED 127.0.0.1:8080 npm ERR! at Object.exports._errnoException (util.js:860:11) npm ERR! at exports._exceptionWithHostPort (util.js:883:20) npm ERR! at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1063:14) npm ERR! { [Error: connect ECONNREFUSED 127.0.0.1:8080] npm ERR! code: 'ECONNREFUSED', npm ERR! errno: 'ECONNREFUSED', npm ERR! syscall: 'connect', npm ERR! address: '127.0.0.1', npm ERR! port: 8080 } npm ERR! npm ERR! If you are behind a proxy, please make sure that the npm ERR! 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request: npm ERR! /home/rank/npm-debug.log rank@rank-ThinkCentre-M73:~$
debug is not a repository to post your generic NPM-related problems; it's a specific package that has nothing to do with most of the comments here.
Locking due to chatter. If you're having lots of problems with NPM, might I suggest StackOverflow (please search first before asking a question). Alternatively, check out @mooyoul's answer.