Closed spartaelcid closed 4 years ago
Node.js v8 is no longer supported. https://github.com/nodejs/Release#readme
Hello,
thanks for the fast reply.
Now i have : $ node -v v12.14.1
but the problem is the same...
If it helps, i was missing the "make" and "g++" packages (apt install make g++
)
Having the exact same problem with node version 12.14.1
@spartaelcid you seem to have installed npm manually, so you also need to update it:
npm install -g npm
The npm you are using now has node-gyp 3.8.0, which does not support Visual Studio 2019.
Also note that weak does not seem to work with Node.js v12: https://github.com/TooTallNate/node-weak/issues/99
Hello, i try to update npm but i have the same issue : $ npm --version 6.13.6
Having the same problem when trying to upgrade nodejs version from v10.15.3 to 12.14.1 (CentOS)
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v5.0.7
When I downgrade to v10.15.3 it's working again gcc-c++ make are up to date.
this thing never worked on node 12 for me
I also got around this by downgrading from node 13 or so to a node 10 version using nvm. I had to redownload a repository because I'd made a mess of one locally trying to do different things with npm install and ng update with the --force option. Anyways, as has been said, try changing your node version if you encounter this it seems.
Also experiencing this issue with node 12.14.1
Hello, i try to update npm but i have the same issue : $ npm --version 6.13.6
Verbose output (from npm or node-gyp):
$ npm i > weak@1.0.1 install C:\Users\admin\Documents\AutoAuthWifiClearpass\node_modules\weak > node-gyp rebuild C:\Users\admin\Documents\AutoAuthWifiClearpass\node_modules\weak>if not defined npm_config_node_gyp (node "C:\Users\admin\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) Compilazione dei progetti nella soluzione uno alla volta. Per abilitare la compilazione parallela, aggiungere l'opzione "/m". weakref.cc win_delay_load_hook.cc ..\src\weakref.cc(147): error C2660: 'v8::Function::Call': function does not take 3 arguments [C:\Users\admin\Documents\AutoAuthWifiClearpass\node_modules\weak\build\weakref.vcxproj] ..\src\weakref.cc(168): error C2660: 'v8::ObjectTemplate::NewInstance': function does not take 0 arguments [C:\Users\admin\Documents\AutoAuthWifiClearpass\node_modules\weak\build\weakref.vcxproj] ..\src\weakref.cc(223): error C2039: 'IsNearDeath': is not a member of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' [C:\Users\admin\Documents\AutoAuthWifiClearpass\node_modules\weak\build\weakref.vcxproj] with [ T=v8::Object ] C:\Users\admin\Documents\AutoAuthWifiClearpass\node_modules\nan\nan.h(1986): note: see declaration of 'Nan::Persistent<v8::Object,v8::NonCopyablePersistentTraits<T>>' with [ T=v8::Object ] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\admin\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:223:5) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) gyp ERR! System Windows_NT 10.0.18362 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\admin\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd C:\Users\admin\Documents\AutoAuthWifiClearpass\node_modules\weak gyp ERR! node -v v12.14.1 gyp ERR! node-gyp -v v5.0.5 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: weak@1.0.1 (node_modules\weak): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: weak@1.0.1 install: `node-gyp rebuild` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 audited 389 packages in 8.109s 1 package is looking for funding run `npm fund` for details found 17 vulnerabilities (7 low, 4 moderate, 6 high) run `npm audit fix` to fix them, or `npm audit` for details </details>
I am having the same issues when trying to publish to Azure App Service running Netcore31. no results yet. Using: Visual Studio 2019 added all the pythin versions npm audit vis, npm uninstall npm install
Over and over again and still the same problem as listed here. The problem is with node-sass and node-gyp.
I am running Clean Architecture, .netcore 3.1.2
+-- @angular-devkit/build-angular@0.803.25
+-- @angular/animations@8.0.0
+-- @angular/cli@8.0.6
+-- @angular/common@8.0.0
+-- @angular/compiler@8.0.0
+-- @angular/compiler-cli@8.0.0
+-- @angular/core@8.0.0
+-- @angular/forms@8.0.0
+-- @angular/language-service@8.0.0
+-- @angular/platform-browser@8.0.0
+-- @angular/platform-browser-dynamic@8.0.0
+-- @angular/platform-server@8.0.0
+-- @angular/router@8.0.0
+-- @fortawesome/angular-fontawesome@0.5.0
+-- @fortawesome/fontawesome-svg-core@1.2.25
+-- @fortawesome/free-solid-svg-icons@5.11.2
+-- @nguniversal/module-map-ngfactory-loader@8.0.0-rc.1
+-- @types/jasmine@3.3.13
+-- @types/jasminewd2@2.0.6
+-- @types/node@11.10.6
+-- aspnet-prerendering@3.0.1
+-- bootstrap@4.3.1
+-- codelyzer@5.1.0
+-- core-js@2.6.9
+-- jasmine-core@3.3.0
+-- jasmine-spec-reporter@4.2.1
+-- jquery@3.4.1
+-- karma@4.1.0
+-- karma-chrome-launcher@2.2.0
+-- karma-coverage-istanbul-reporter@2.0.5
+-- karma-jasmine@2.0.1
+-- karma-jasmine-html-reporter@1.4.2
+-- ngx-bootstrap@5.2.0
+-- UNMET OPTIONAL DEPENDENCY node-sass@4.12.0
| +-- async-foreach@0.1.3
| +-- chalk@1.1.3
| +-- cross-spawn@3.0.1
| +-- gaze@1.1.3
| +-- get-stdin@4.0.1
| +-- glob@7.1.4 deduped
| +-- in-publish@2.0.0
| +-- lodash@4.17.15 deduped
| +-- meow@3.7.0
| +-- mkdirp@0.5.1
| +-- nan@2.14.0
| +-- node-gyp@3.8.0
| +-- npmlog@4.1.2
| +-- request@2.88.0
| +-- sass-graph@2.2.4
| +-- stdout-stream@1.4.1
| -- true-case-path@1.0.3 +-- oidc-client@1.9.0 +-- popper.js@1.15.0 +-- protractor@5.4.2 +-- rxjs@6.5.2 +-- ts-node@5.0.1 +-- tslint@5.9.1 +-- typescript@3.4.5
-- zone.js@0.9.1
if you are windows user, try install windows-build-tools. I had solved this issue when I installed visual studio 2019, You should install visual studio 2017 or 2015. see https://github.com/sass/node-sass/issues/2074.
In my knowns, visual studio 2019 not support node-sass compile yet.
Also seeing this issue with node
v10.15.3 (npm
6.4.1) and node-sass
4.13.1.
These errors only occur when using npm ci
, not npm install
(for me).
Same issue for me with Node.js v12.16.1. && npm@6.14.4
gyp info using node-gyp@3.8.0
is the problem. What version of node-gyp
does your log say? There can be multiple versions of node-gyp
installed but it is the one written in the log that is important. How do things change after running npm install -g npm
?
same issue here
in the error log it says: node-gyp -v v5.1.0 on OSX
after updating both node and npm to latest:
$ node --version v12.16.1
$ npm --version 6.14.4
(xcode-select --install already installed)
same issue here
in the error log it says: node-gyp -v v5.1.0 on OSX
after updating both node and npm to latest:
$ node --version v12.16.1
$ npm --version 6.14.4
(xcode-select --install already installed)
reinstalling x-code tools seems to have fixed it -> https://github.com/schnerd/d3-scale-cluster/issues/7
I will close this issue as I don't see anything we can do on the node-gyp side for the issues above. If I missed anything, we can always reopen.
For the issues here with the weak
module:
weak
does not support Node.js v12 or above (see https://github.com/TooTallNate/node-weak/issues/99). You might:
weak
directly, consider using an alternative. weak-napi
seems to be a possible alternative: https://github.com/node-ffi-napi/weak-napiweak
, please check that module's issue tracker for instructions or other issues about this. If there are none, please open a PR or issue there.For the issues here with the node-sass
module:
node-sass
does not support VS2019, because it is locked on an old and unsupported version of node-gyp
: https://github.com/sass/node-sass/issues/2716 . This is not an issue with node-gyp
, recent versions support VS2019 and this error would not happen.
However, node-sass
provides prebuilt versions. While running npm install, a prebuilt version should be downloaded automatically. The issue might be that node-sass
is not able to download the prebuilt version. Please try to understand why, and open an issue in the node-sass
issue tracker if help is needed.
If you actually need to build node-sass
, you might have some luck with this workaround: https://github.com/nodejs/node-gyp/issues/1753#issuecomment-496024604
I got the workaround for this error, you have to install Xcode to Xcode command line. read full steps here Error solving steps
Uninstall Node and Reinstall , It's solved in my side
in my situation, turn from node@16
to node@14
solved this.
Verbose output (from npm or node-gyp):
``` $ npm i --verbose npm info it worked if it ends with ok npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe', npm verb cli 'C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', npm verb cli 'i', npm verb cli '--verbose' ] npm info using npm@6.5.0 npm info using node@v8.11.3 npm verb npm-session 72619d7d01e6525a npm info lifecycle AutoAuthWifiClearpass@0.0.1~preinstall: AutoAuthWifiClearpass@0.0.1 npm timing stage:loadCurrentTree Completed in 612ms npm timing stage:loadIdealTree:cloneCurrentTree Completed in 6ms npm timing stage:loadIdealTree:loadShrinkwrap Completed in 244ms npm timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 241ms npm timing stage:loadIdealTree Completed in 572ms npm timing stage:generateActionsToTake Completed in 59ms npm verb correctMkdir C:\Users\christian.fornara\AppData\Roaming\npm-cache\_locks correctMkdir not in flight; initializing npm timing audit compress Completed in 8ms npm info audit Submitting payload of 12000bytes npm verb lock using C:\Users\christian.fornara\AppData\Roaming\npm-cache\_locks\staging-7568c44e56040492.lock for E:\Progetti\AutoAuthWifiClearpass\node_modules\.staging npm timing action:extract Completed in 77ms npm timing action:finalize Completed in 12ms npm timing action:refresh-package-json Completed in 137ms npm info lifecycle file-uri-to-path@1.0.0~preinstall: file-uri-to-path@1.0.0 npm info lifecycle bindings@1.5.0~preinstall: bindings@1.5.0 npm info lifecycle weak@1.0.1~preinstall: weak@1.0.1 npm timing action:preinstall Completed in 3ms npm info linkStuff file-uri-to-path@1.0.0 npm info linkStuff bindings@1.5.0 npm info linkStuff weak@1.0.1 npm timing action:build Completed in 5ms npm info lifecycle file-uri-to-path@1.0.0~install: file-uri-to-path@1.0.0 npm info lifecycle bindings@1.5.0~install: bindings@1.5.0 npm info lifecycle weak@1.0.1~install: weak@1.0.1 > weak@1.0.1 install E:\Progetti\AutoAuthWifiClearpass\node_modules\weak > node-gyp rebuild E:\Progetti\AutoAuthWifiClearpass\node_modules\weak>if not defined npm_config_node_gyp (node "C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp info it worked if it ends with ok gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe', gyp verb cli 'C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js', gyp verb cli 'rebuild' ] gyp info using node-gyp@3.8.0 gyp info using node@8.11.3 | win32 | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "C:Userschristian.fornara.windows-build-toolspython27" in the PATH gyp verb `which` failed Error: not found: C:Userschristian.fornara.windows-build-toolspython27 gyp verb `which` failed at getNotFoundError (C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) gyp verb `which` failed at F (C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) gyp verb `which` failed at E (C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) gyp verb `which` failed at C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 gyp verb `which` failed at C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\index.js:42:5 gyp verb `which` failed at C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21) gyp verb `which` failed C:Userschristian.fornara.windows-build-toolspython27 { Error: not found: C:Userschristian.fornara.windows-build-toolspython27 gyp verb `which` failed at getNotFoundError (C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:13:12) gyp verb `which` failed at F (C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:68:19) gyp verb `which` failed at E (C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:80:29) gyp verb `which` failed at C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\which\which.js:89:16 gyp verb `which` failed at C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\index.js:42:5 gyp verb `which` failed at C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21) gyp verb `which` failed stack: 'Error: not found: C:Userschristian.fornara.windows-build-toolspython27\n at getNotFoundError (C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:13:12)\n at F (C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:68:19)\n at E (C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:80:29)\n at C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\which\\which.js:89:16\n at C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\isexe\\index.js:42:5\n at C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:152:21)', gyp verb `which` failed code: 'ENOENT' } gyp verb could not find "C:Userschristian.fornara.windows-build-toolspython27". checking python launcher gyp verb check python launcher python executable found: "C:\\Users\\christian.fornara\\.windows-build-tools\\python27\\python.exe" gyp verb check python version `C:\Users\christian.fornara\.windows-build-tools\python27\python.exe -c "import sys; print "2.7.15 gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j gyp verb get node dir no --target version specified, falling back to host node version: 8.11.3 gyp verb command install [ '8.11.3' ] gyp verb install input version string "8.11.3" gyp verb install installing version: 8.11.3 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 8.11.3 gyp verb build dir attempting to create "build" dir: E:\Progetti\AutoAuthWifiClearpass\node_modules\weak\build gyp verb build dir "build" dir needed to be created? E:\Progetti\AutoAuthWifiClearpass\node_modules\weak\build gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: E:\Progetti\AutoAuthWifiClearpass\node_modules\weak\build\config.gypi gyp verb config.gypi checking for gypi file: E:\Progetti\AutoAuthWifiClearpass\node_modules\weak\config.gypi gyp verb common.gypi checking for gypi file: E:\Progetti\AutoAuthWifiClearpass\node_modules\weak\common.gypi gyp verb gyp gyp format was not specified; forcing "msvs" gyp info spawn C:\Users\christian.fornara\.windows-build-tools\python27\python.exe gyp info spawn args [ 'C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=2019', gyp info spawn args '-I', gyp info spawn args 'E:\\Progetti\\AutoAuthWifiClearpass\\node_modules\\weak\\build\\config.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\christian.fornara\\.node-gyp\\8.11.3\\include\\node\\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\\Users\\christian.fornara\\.node-gyp\\8.11.3', gyp info spawn args '-Dnode_gyp_dir=C:\\Users\\christian.fornara\\AppData\\Roaming\\npm\\node_modules\\npm\\node_modules\\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\\Users\\christian.fornara\\.node-gyp\\8.11.3\\<(target_arch)\\node.lib', gyp info spawn args '-Dmodule_root_dir=E:\\Progetti\\AutoAuthWifiClearpass\\node_modules\\weak', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'E:\\Progetti\\AutoAuthWifiClearpass\\node_modules\\weak\\build', gyp info spawn args '-Goutput_dir=.' ] Traceback (most recent call last): File "C:\Users\christian.fornara\AppData\Roaming\npm\node_modules\npm\node_modules\node-gyp\gyp\gyp_main.py", line 16, in