Can't create a project on linux platform.
See original GitHub issueHere is the output:
gech@x:workspace$ gridsome create andremarang
❯ Clone https://github.com/gridsome/gridsome-starter-default.git 3.42s ❯ Update project package.json 0s ❯ Install dependencies • Building fresh packages (4 of 4) Error: Failed to install dependencies with yarn. Please enter andremarang directory and install dependencies with yarn or npm manually. Then run gridsome develop to start local development.
Exit code 1
at ChildProcess.child.on.code (/home/gech/.npm-global/lib/node_modules/@gridsome/cli/lib/commands/create.js:102:17)
at ChildProcess.emit (events.js:198:13)
at maybeClose (internal/child_process.js:982:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
gech@x:workspace$ cd and*
gech@x:andremarang$ npm install
npm WARN deprecated joi@14.3.1: This module has moved and is now available at @hapi/joi. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated topo@3.0.3: This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN deprecated hoek@6.1.3: This module has moved and is now available at @hapi/hoek. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues. npm WARN rm not removing /home/gech/workspace/andremarang/node_modules/.bin/json5 as it wasn’t installed by /home/gech/workspace/andremarang/node_modules/json5
sharp@0.22.1 install /home/gech/workspace/andremarang/node_modules/sharp (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)
info sharp Using cached /home/gech/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz
ERR! sharp Please delete /home/gech/.npm/_libvips/libvips-8.7.4-linux-x64.tar.gz as it is not a valid tarball
ERR! sharp zlib: unexpected end of file
info sharp Attempting to build from source via node-gyp but this may fail due to the above error
info sharp Please see https://sharp.pixelplumbing.com/page/install for required dependencies
make: Entering directory ‘/home/gech/workspace/andremarang/node_modules/sharp/build’
TOUCH Release/obj.target/libvips-cpp.stamp
CXX(target) Release/obj.target/sharp/src/common.o
…/src/common.cc:25:10: fatal error: vips/vips8: No such file or directory
#include <vips/vips8>
^~~~~~~~~~~~
compilation terminated.
sharp.target.mk:128: recipe for target ‘Release/obj.target/sharp/src/common.o’ failed
make: *** [Release/obj.target/sharp/src/common.o] Error 1
make: Leaving directory ‘/home/gech/workspace/andremarang/node_modules/sharp/build’
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 4.15.0-52-generic
gyp ERR! command “/usr/bin/node” “/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild”
gyp ERR! cwd /home/gech/workspace/andremarang/node_modules/sharp
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“x64”})
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! /home/gech/.npm/_logs/2019-06-20T16_05_59_955Z-debug.log
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (1 by maintainers)
Try
npm rebuild
I met the same problem on linux. I removed node_modules and re-run “yarn”, and still got the error:
…/src/common.cc:25:10: fatal error: vips/vips8: No such file or directory
At first I used node v8.16.1, then node 10.16.2, the error still happens.
I finally find this https://github.com/lovell/sharp/issues/1882 , it tolds me to run “apt install libvips-dev” on ubuntu