Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when install global. #18

Closed
StevePhuc opened this issue Mar 20, 2019 · 3 comments
Closed

Error when install global. #18

StevePhuc opened this issue Mar 20, 2019 · 3 comments

Comments

@StevePhuc
Copy link

Here is the short error:

$ npx install-peerdeps --global eslint-config-wesbos
npm ERR! code ENOLOCAL
npm ERR! Could not install from "..\AppData\Roaming\npm-cache\_npx\8316" as it does not contain a package.json file.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\...\AppData\Roaming\npm-cache\_logs\2019-03-20T07_41_12_139Z-debug.log
Install for install-peerdeps@latest failed with code 1

Here is the full from debug.log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\Users\\Steve Phuc\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'install',
1 verbose cli   'install-peerdeps@latest',
1 verbose cli   '--global',
1 verbose cli   '--prefix',
1 verbose cli   'C:\\Users\\Steve',
1 verbose cli   'Phuc\\AppData\\Roaming\\npm-cache\\_npx\\8316',
1 verbose cli   '--loglevel',
1 verbose cli   'error',
1 verbose cli   '--json' ]
2 info using npm@6.9.0
3 info using node@v10.15.3
4 verbose npm-session 73c55768641db36d
5 silly install loadCurrentTree
6 silly install readGlobalPackageData
7 silly fetchPackageMetaData error for file:Phuc\AppData\Roaming\npm-cache\_npx\8316 Could not install from "Phuc\AppData\Roaming\npm-cache\_npx\8316" as it does not contain a package.json file.
8 http fetch GET 304 https://registry.npmjs.org/install-peerdeps 412ms (from cache)
9 silly pacote tag manifest for install-peerdeps@latest fetched in 434ms
10 timing stage:rollbackFailedOptional Completed in 1ms
11 timing stage:runTopLevelLifecycles Completed in 448ms
12 verbose stack Error: ENOENT: no such file or directory, open 'C:\Users\Steve Phuc\Phuc\AppData\Roaming\npm-cache\_npx\8316\package.json'
13 verbose cwd C:\Users\Steve Phuc
14 verbose Windows_NT 10.0.17763
15 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Steve Phuc\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "install-peerdeps@latest" "--global" "--prefix" "C:\\Users\\Steve" "Phuc\\AppData\\Roaming\\npm-cache\\_npx\\8316" "--loglevel" "error" "--json"
16 verbose node v10.15.3
17 verbose npm  v6.9.0
18 error code ENOLOCAL
19 error Could not install from "Phuc\AppData\Roaming\npm-cache\_npx\8316" as it does not contain a package.json file.
20 verbose exit [ 1, true ]

also tried and failed with reset

@indreklasn
Copy link

Clear the NPM cache and try again

@StevePhuc
Copy link
Author

@wesharehoodies Thank you for reply , I try it but still the same error

MqZzBD32RpiRkMNTmDTnKg 1

@StevePhuc
Copy link
Author

I found out. It is because my folder have space.
Here is how you solve it
zkat/npx#146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants