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

Fresh install npm install error #50

Open
ghost opened this issue May 14, 2020 · 6 comments
Open

Fresh install npm install error #50

ghost opened this issue May 14, 2020 · 6 comments

Comments

@ghost
Copy link

ghost commented May 14, 2020

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 [email protected] and [email protected] (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

[email protected] 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 Set(Local 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 Set(Local 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! [email protected] 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 [email protected] 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

@ghost
Copy link
Author

ghost commented May 16, 2020

I fixed the issue by using node v12 instead of v14, how ever there is an issue with live server, it's not reloading the changes at all despite the compiling is successful, any suggestions ?

@ericalli
Copy link
Owner

Working on updating SSB to support up to Node v14. Will keep you posted.

@kriiv
Copy link

kriiv commented Jul 19, 2020

Any news on this?

@kyds3k
Copy link

kyds3k commented Jun 13, 2021

Any update on this? I'm getting a fail to build on node v15.15.1:

gyp ERR! build error gyp ERR! stack Error: makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/Users/adamdarby/sandbox/static-site-boilerplate/node_modules/node-gyp/lib/build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12) gyp ERR! System Darwin 20.5.0 gyp ERR! command "/Users/adamdarby/.nvm/versions/node/v14.15.1/bin/node" "/Users/adamdarby/sandbox/static-site-boilerplate/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /Users/adamdarby/sandbox/static-site-boilerplate/node_modules/node-sass gyp ERR! node -v v14.15.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall:node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall 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/adamdarby/.npm/_logs/2021-06-13T07_41_21_426Z-debug.log`

@ericalli
Copy link
Owner

@kyds3k I think I've found the issue here. Node Sass v5+ is required for Node v15 support. I'll update this package and test it out shortly. If you want to try this yourself, i think it should be a quick fix. Just edit the package.json file on line 63, change:

"node-sass": "^4.12.0",

to

"node-sass": "^5.0.0",

Then run npm install. Let me know if that does the trick.

@kyds3k
Copy link

kyds3k commented 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!

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

3 participants