-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
wrong path to node-gyp bin #1760
Comments
npm uses
This should be documented |
Error: Cannot find module 'C:\Program Files\nodejs\node_modules\npm\node_modules\node_modules\node-gyp\bin\node-gyp.js' node-v node@10.15.1 |
Now i found ref and node-ffi can't be installed , node-gyp would rebuild them first but they were failed.Error message: |
@ShaMan123 @NBSeven for whatever reason when calling node-gyp you end up running npm internal node-gyp script. That should not happen, so:
Thanks! |
$ where node-gyp C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\TortoiseSVN\bin;C:\Users\wangzhongxiang5.windows-build-tools\python27;C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\wangzhongxiang5\AppData\Roaming\npm\node_modules\windows-build-tools\node_modules.bin;C:\Users\wangzhongxiang5\AppData\Roaming\npm\node_modules.bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Program Files\TortoiseSVN\bin;C:\Users\wangzhongxiang5\AppData\Local\Microsoft\WindowsApps;C:\Users\wangzhongxiang5\AppData\Roaming\npm;C:\Users\wangzhongxiang5\AppData\Local\Programs\Microsoft VS Code\bin |
@NBSeven I see you have |
@bzoz I have no idea .... |
|
ok, so can you try removing |
@bzoz 743 verbose stack Error: node-ffi@0.5.7 install: |
Is that the complete log? Can you run |
|
Thanks! |
@ShaMan123 in your PATH variable you have
those probably should not be there and are causing the issues, especially the first one. Do you have any idea how those where added to your PATH variable? |
node-gyp rebuild --verbose
|
@bzoz don't know. |
@ShaMan123 doesn't look like so, at least it does not add anything to the path for me. From the path I see you have also yarn installed, do you have any other node/npm build tools installed on your system? |
not that I know of. npm, node, yarn. |
Ok, looks like when windows-build-tools is installing Python, it also adds those entries to the PATH. Thanks for your help! |
happy to help |
This was fixed in felixrieseberg/windows-build-tools#188 so I'll go ahead and close this out. |
Canvas
but it works and builds.Verbose output (from npm or node-gyp):
The module exists in this path
C:\Users\DELL\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js
. There's an error resloving the path.I downgraded node10 to node8. This bug seems to live in npm@node10 because after reinstalling npm on node8 this bug disappeared.
The text was updated successfully, but these errors were encountered: