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

Pyright install breaks with npm v7 #35

Open
nwh opened this issue Jan 10, 2021 · 1 comment
Open

Pyright install breaks with npm v7 #35

nwh opened this issue Jan 10, 2021 · 1 comment

Comments

@nwh
Copy link

nwh commented Jan 10, 2021

I am setting up a fresh instance of macOS Big Sur. I think I am running into this upstream npm issue: npm/cli#2277

0 verbose cli [
0 verbose cli   '/opt/brew/Cellar/node/15.5.1/bin/node',
0 verbose cli   '/opt/brew/bin/npm',
0 verbose cli   '-g',
0 verbose cli   '--prefix',
0 verbose cli   '/Users/nw_henderson/github.com/nwh/emacs.d/.cache/lsp/npm/pyright',
0 verbose cli   'install',
0 verbose cli   'pyright'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/opt/brew/lib/node_modules/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:/Users/nw_henderson/github.com/nwh/emacs.d/.cache/lsp/npm/pyright/.npmrc Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/Users/nw_henderson/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/Users/nw_henderson/github.com/nwh/emacs.d/.cache/lsp/npm/pyright/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 0ms
18 timing config:load Completed in 5ms
19 verbose npm-session 20464621194c937e
20 timing npm:load Completed in 9ms
21 timing arborist:ctor Completed in 1ms
22 timing idealTree:init Completed in 5ms
23 timing idealTree:userRequests Completed in 1ms
24 silly idealTree buildDeps
25 silly fetch manifest pyright@*
26 http fetch GET 304 https://registry.npmjs.org/pyright 125ms (from cache)
27 silly placeDep ROOT [email protected] OK for:  want: *
28 timing idealTree:#root Completed in 132ms
29 timing idealTree:node_modules/pyright Completed in 0ms
30 timing idealTree:buildDeps Completed in 133ms
31 timing idealTree:fixDepFlags Completed in 0ms
32 timing idealTree Completed in 140ms
33 timing command:install Completed in 142ms
34 verbose stack Error: ENOENT: no such file or directory, lstat '/Users/nw_henderson/github.com/nwh/emacs.d/.cache'
35 verbose cwd /Users/nw_henderson/.npm/_logs
36 verbose Darwin 20.2.0
37 verbose argv "/opt/brew/Cellar/node/15.5.1/bin/node" "/opt/brew/bin/npm" "-g" "--prefix" "/Users/nw_henderson/github.com/nwh/emacs.d/.cache/lsp/npm/pyright" "install" "pyright"
38 verbose node v15.5.1
39 verbose npm  v7.3.0
40 error code ENOENT
41 error syscall lstat
42 error path /Users/nw_henderson/github.com/nwh/emacs.d/.cache
43 error errno -2
44 error enoent ENOENT: no such file or directory, lstat '/Users/nw_henderson/github.com/nwh/emacs.d/.cache'
45 error enoent This is related to npm not being able to find a file.
46 verbose exit -2
@nwh
Copy link
Author

nwh commented Jan 10, 2021

macOS/brew work around is to brew install node@14 and ensure that npm v6 is available on PATH. See brew info node@14.

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

1 participant