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.

Can't create a project on linux platform.

See original GitHub issue

Here 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:open
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
arifhussain353commented, Oct 11, 2019

Try npm rebuild

0reactions
CliffHancommented, Jan 6, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Create new platform project button doesn't work - Xilinx Support
Hello,. I have problem with Vitis IDE GUI v2020.2. I can't create a new platform project. GUI buttons doesn't respond. I Select File...
Read more >
Linux Project won't build because it can't find include and ...
I am attempting to build a Linux project and use the 'json-c' library which I have installed on Ubuntu Linux system: sudo apt-get...
Read more >
Can not create new project in Unity Hub - Linux
I just downloaded a editor in the Unity Hub interface (2019.2.19f1) but the created project does not exists in the path.
Read more >
IntelliJ 'New Project' - cannot select 'Linux' platform option #5347
Make sure the flutter-intellij plugin is installed, using the 'dev' channel. · Start IntelliJ IDEA. · Select the 'Projects' tab on the left...
Read more >
Cannot create new project – IDEs Support (IntelliJ Platform)
I cannot create new project. The project wizard doesn't show up. The Python plugin maybe the culprit, since disabling Python plugin make...
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