Closed imorvai closed 4 years ago
Have you tried to execute the following command before installing node-gyp with administrator privileges?
npm install --global --production windows-build-tools
That worked for me.
Perhaps this undocumented dependency should be added to the documentation?
Node.js v21.6.1
PS C:\Users\MANUTANU\sblvoice> npm install --global --production windows-build-tools
npm WARN config production Use --omit=dev
instead.
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated windows-build-tools@5.2.2: Node.js now includes build tools for Windows. You probably no longer need this tool. See https://github.com/felixrieseberg/windows-build-tools for details.
npm WARN cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup 'C:\Users\MANUTANU\AppData\Roaming\nvm\v21.6.1\node_modules\windows-build-tools',
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\MANUTANU\AppData\Roaming\nvm\v21.6.1\node_modules\windows-build-tools\node_modules\verror\node_modules\core-util-is'] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: 'EPERM',
npm WARN cleanup syscall: 'rmdir',
npm WARN cleanup path: 'C:\Users\MANUTANU\AppData\Roaming\nvm\v21.6.1\node_modules\windows-build-tools\node_modules\verror\node_modules\core-util-is'
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\MANUTANU\AppData\Roaming\nvm\v21.6.1\node_modules\windows-build-tools
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./dist/index.js
Downloading python-2.7.15.amd64.msi
npm ERR! [============================================>] 100.0% (0 B/s)
npm ERR! Downloaded python-2.7.15.amd64.msi. Saved to C:\Users\MANUTANU.windows-build-tools\python-2.7.15.amd64.msi.
Downloading vs_BuildTools.exe
npm ERR! [============================================>] 100.0% (0 B/s)
npm ERR! Downloaded vs_BuildTools.exe. Saved to C:\Users\MANUTANU.windows-build-tools\vs_BuildTools.exe.
npm ERR!
npm ERR! Starting installation...
npm ERR! Downloading installers failed. Error: TypeError: 'process.env' only accepts a configurable, writable, and enumerable data descriptor
npm ERR! at Function.defineProperty (punycode
module is deprecated. Please use a userland alternative instead.
npm ERR! (Use node --trace-deprecation ...
to show where the warning was created)
npm ERR! A complete log of this run can be found in: C:\Users\MANUTANU\AppData\Local\npm-cache_logs\2024-02-05T07_50_03_334Z-debug-0.log PS C:\Users\MANUTANU\sblvoice>
i keep getting this error plz help
Hello,
I tried to install speaker, but I cannot because of the following issues:
`C:>node -v v10.1.0
C:>npm -v 6.1.0
C:\poc>npm install speaker --save
C:\poc\node_modules\speaker>if not defined npm_config_node_gyp (node "C:\Users\\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "node C:\Users\\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild )
internal/modules/cjs/loader.js:573
throw err;
^
Error: Cannot find module 'C:\poc\node_modules\speaker\node C:\Users\\AppData\Roaming\npm\node_modules\node-gyp\bin\node-gyp.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:571:15)
at Function.Module._load (internal/modules/cjs/loader.js:497:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:719:10)
at startup (internal/bootstrap/node.js:228:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:576:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! speaker@0.4.1 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the speaker@0.4.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.`