question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Fresh install npm install error

See original GitHub issue

node -v v14.2.0 npm -v6.14.5

node install

node-pre-gyp WARN Using request for node-pre-gyp https download node-pre-gyp WARN Tried to download(404): https://fsevents-binaries.s3-us-west-2.amazonaws.com/v1.2.9/fse-v1.2.9-node-v83-darwin-x64.tar.gz node-pre-gyp WARN Pre-built binaries not found for fsevents@1.2.9 and node@14.2.0 (node-v83 ABI, unknown) (falling back to source compile with node-gyp) SOLINK_MODULE(target) Release/.node CXX(target) Release/obj.target/fse/fsevents.o In file included from …/fsevents.cc:6: In file included from …/…/nan/nan.h:2884: …/…/nan/nan_typedarray_contents.h:34:43: warning: ‘GetContents’ is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations] data = static_cast<char*>(buffer->GetContents().Data()) + byte_offset; ^ /Users/richardroe/Library/Caches/node-gyp/14.2.0/include/node/v8.h:5202:3: note: ‘GetContents’ has been explicitly marked deprecated here V8_DEPRECATE_SOON(“Use GetBackingStore. See http://crbug.com/v8/9908.”) ^ /Users/richardroe/Library/Caches/node-gyp/14.2.0/include/node/v8config.h:402:39: note: expanded from macro ‘V8_DEPRECATE_SOON’

define V8_DEPRECATE_SOON(message) [[deprecated(message)]]

                                  ^

1 warning generated. SOLINK_MODULE(target) Release/fse.node COPY /Users/richardroe/Documents/static-site-boilerplate/node_modules/fsevents/lib/binding/Release/node-v83-darwin-x64/fse.node TOUCH Release/obj.target/action_after_build.stamp

sharp@0.22.1 install /Users/richardroe/Documents/static-site-boilerplate/node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Using cached /Users/richardroe/.npm/_libvips/libvips-8.7.4-darwin-x64.tar.gz prebuild-install WARN install No prebuilt binaries found (target=14.2.0 runtime=node arch=x64 libc= platform=darwin) TOUCH Release/obj.target/libvips-cpp.stamp CXX(target) Release/obj.target/sharp/src/common.o CXX(target) Release/obj.target/sharp/src/metadata.o CXX(target) Release/obj.target/sharp/src/stats.o …/src/stats.cc:130:19: error: no matching member function for call to ‘Set’ channels->Set(i, channelStat); ~~~~~~~~^ /Users/richardroe/Library/Caches/node-gyp/14.2.0/include/node/v8.h:3639:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, ^ /Users/richardroe/Library/Caches/node-gyp/14.2.0/include/node/v8.h:3642:37: note: candidate function not viable: requires 3 arguments, but 2 were provided V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index, ^ 1 error generated. make: *** [Release/obj.target/sharp/src/stats.o] Error 1 gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12) gyp ERR! System Darwin 19.4.0 gyp ERR! command “/usr/local/Cellar/node/14.2.0/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /Users/richardroe/Documents/static-site-boilerplate/node_modules/sharp gyp ERR! node -v v14.2.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sharp@0.22.1 install: (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy) npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sharp@0.22.1 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/richardroe/.npm/_logs/2020-05-14T23_42_56_422Z-debug.log

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
kriivcommented, Jul 19, 2020

Any news on this?

0reactions
kyds3kcommented, Jun 14, 2021

@ericalli that got me through the install, but after that I got:

Error: Node Sass version 5.0.0 is incompatible with ^4.0.0.

I was able to use the suggestion here to fix that: https://stackoverflow.com/questions/64625050/error-node-sass-version-5-0-0-is-incompatible-with-4-0-0

Seems to be going well now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve npm install error “npm ERR! code 1”
try with deleting package-lock.json file and node_module folder then run npm cache clean --force. And try npm i again to install packages. If...
Read more >
Common errors | npm Docs
Some strange issues can be resolved by simply running npm cache clean and trying again. If you are having trouble with npm install...
Read more >
5 Ways to Fix the Npm Install Not Working Issue
The main cause of the npm command not found error is that npm is not installed. You can run the command “npm -v”...
Read more >
Solved: npm install error while doing clean install to bui...
npm install error while doing clean install to build and deploy the WNKD project to AEM.
Read more >
Manage npm packages - Visual Studio (Windows)
To help identify errors, check the npm Output window when installing the packages, as described previously in this article. For example, if one ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found