npm WARN enoent ENOENT: no such file or directory, open '/Users/muser/package.json'
npm WARN muser No description
npm WARN muser No repository field.
npm WARN muser No README data
npm WARN muser No license field.
There is no package.json at '/Users/muser/package.json'
What is wrong in my setup? and how can I fix it.
@FaShapouri It seems trying npm install
in uninitialized npm package directory.
you should initialize package with npm init
.
If you want to use debug without package initialize, just use npm install debug
.
srebalaji, sanjeevkse, goonerDp, virgil, rubykv, FaShapouri, anirudhmurali, anilmuppalla, andrejgodina, pjm4, and 43 more reacted with thumbs up emoji
Kriel, oumou318, kaleem-elahi, EliVerbrugge, alexreyes, Nako68l, and zrhth5 reacted with laugh emoji
zrhth5 reacted with hooray emoji
Jay25patil, kaleem-elahi, smoliakov, adilbekes, alexreyes, and zhaolinnan12 reacted with confused emoji
All reactions
Jay25patil, apbraga, amaljose01, cferrante, sheetal-mandyal, caiosist, evawyf, WIZARDELF, pt657407064, mmiinnovations, and 14 more reacted with thumbs up emoji
purefan reacted with thumbs down emoji
All reactions
WARN enoent ENOENT: no such file or directory, open '/home/nodeuser/hapi-mysql-unchained/node_modules/request/package.json'
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! Linux 4.4.0-36-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.9.2
npm ERR! npm v4.2.0
npm ERR! path /home/nodeuser/hapi-mysql-unchained/node_modules/node-pre-gyp/node_modules
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall access
npm ERR! Error: EACCES: permission denied, access '/home/nodeuser/hapi-mysql-unchained/node_modules/node-pre-gyp/node_modules'
npm ERR! at Error (native)
npm ERR! { Error: EACCES: permission denied, access '/home/nodeuser/hapi-mysql-unchained/node_modules/node-pre-gyp/node_modules'
npm ERR! at Error (native)
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'access',
npm ERR! path: '/home/nodeuser/hapi-mysql-unchained/node_modules/node-pre-gyp/node_modules' }
if you are pretty new to Node/github/etc., you might be doing what I did -- cloned a repo and then forgot to cd into the repo directory -- so npm can't find a package.json file, so it gives you that big convoluted error message.
i was operating in my main 'dev' directory:
~/dev$ npm install
but i needed to be in my cloned git directory:
~/dev/quiztool$ npm install
sakjawea, raushan896, dwenaus, simeyla, alexreyes, WPAS, and d88naimi reacted with thumbs up emoji
EdwardPerello, alexreyes, and d88naimi reacted with hooray emoji
EdwardPerello, alexreyes, and d88naimi reacted with heart emoji
All reactions
ubuntu@ubuntu:~$ npm install debug
npm ERR! Linux 4.8.0-22-generic
npm ERR! argv "/home/ubuntu/.nvm/versions/node/v7.7.2/bin/node" "/home/ubuntu/.nvm/versions/node/v7.7.2/bin/npm" "install" "debug"
npm ERR! node v7.7.2
npm ERR! npm v4.1.2
npm ERR! code ENOTFOUND
npm ERR! errno ENOTFOUND
npm ERR! syscall getaddrinfo
npm ERR! network getaddrinfo ENOTFOUND registry.npmjs.org registry.npmjs.org:443
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/npm-debug.log
Please try, npm install npm@latest -g
the output you will get as below
C:\Users*\AppData\Roaming\npm\npm -> C:\Users*\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js
C:\Users*****\AppData\Roaming\npm
-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] |
-- [email protected]
| -- [email protected] |
-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] |
-- [email protected]
| -- [email protected] |
-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | |
-- [email protected]
| | +-- [email protected]
| | -- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | |
-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | |
-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | |
-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] |
-- [email protected]
| -- [email protected] +-- [email protected] |
-- [email protected]
+-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] | +-- [email protected] | |
-- [email protected]
| | +-- [email protected]
| | -- [email protected] |
-- [email protected]
+-- [email protected]
| -- [email protected] | +-- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |
-- [email protected]
| | | -- [email protected] | | +-- [email protected] | |
-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] |
-- [email protected]
+-- [email protected]
| -- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | |
-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | |
-- [email protected]
| | | -- [email protected] | |
-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | |
-- [email protected]
| | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | |
-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | +-- [email protected] | |
-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] | +-- [email protected] | |
-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] +-- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | |
-- [email protected]
| | | -- [email protected] | | +-- [email protected] | | +-- [email protected] | | +-- [email protected] | | |
-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | |
-- [email protected]
| | | | +-- [email protected]
| | | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | |
-- [email protected]
| | -- [email protected] | |
-- [email protected]
| | +-- [email protected]
| | -- [email protected] | |
-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | | +-- [email protected] | | |
-- [email protected]
| | -- [email protected] | |
-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | -- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | |
-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | -- [email protected] | | |
-- [email protected]
| | +-- [email protected]
| | | -- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | |
-- [email protected]
| | -- [email protected] | |
-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | -- [email protected] | +-- [email protected] | +-- [email protected] |
-- [email protected]
+-- [email protected]
+-- [email protected]
| +-- [email protected]
| | -- [email protected] |
-- [email protected]
| +-- [email protected]
| -- [email protected] +-- [email protected] |
-- [email protected]
+-- [email protected]
| -- [email protected] +-- [email protected]
-- [email protected]
later install bootstrap, try below
$ npm install -g [email protected]
C:\Users******\AppData\Roaming\npm
-- [email protected] +-- [email protected]
-- [email protected]
New to node... setup EC2 > AMAZON linux.. Node setup.. tried all kinds of versions..
no matter what i do, errors are obtained during install..
tried npm init... tried diff versions of all parts... still I can't get a successful install & test code always fails.
Errors below. Please advise
npm install pdfkit
npm WARN saveError ENOENT: no such file or directory, open '/home/ec2-user/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/ec2-user/package.json'
npm WARN ec2-user No description
npm WARN ec2-user No repository field.
npm WARN ec2-user No README data
npm WARN ec2-user No license field.
npm WARN ec2-user Invalid dependency: png-js undefined
No matter what I install or how, i get these:
npm WARN saveError ENOENT: no such file or directory, open '/home/ec2-user/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/home/ec2-user/package.json'
Angular 2 project not run forever show these errors:
npm ERR! path /package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-05-30T12_02_40_976Z-debug.log
error: Forever detected script exited with code: 254
error: Script restart attempt #1
npm ERR! path /package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
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
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
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
[email protected]_
then i installed latest "minimatch", "serve-favicon" and "react"
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. (/usr/local/lib/node_modules/airsonos/node_modules/sonos/lib/events/listener.js:123:9)
at Request.self.callback (/usr/local/lib/node_modules/airsonos/node_modules/request/request.js:129:22)_
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>
$ 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.