Cannot install @vue/cli-service on Linux aarch64 because "Failed at the yorkie@2.0.0 install script."
See original GitHub issueVersion
3.4.0
Environment info
OS: Linux 4.14.0-xilinx-v2018.2 aarch64 / arm64
User: root
Node: 10.15.1 (installed at /usr/bin/node)
npm: 6.4.1 (installed at /usr/bin/npm)
Steps to reproduce
From the command line, just do npm install @vue/cli-service
.
What is expected?
The installation of @vue/cli-service is successful.
What is actually happening?
The installation fails with the following error message:
> yorkie@2.0.0 install /home/root/apps/config-manager/out/webapp/frontend/node_modules/yorkie
> node bin/install.js
internal/modules/cjs/loader.js:583
throw err;
^
Error: Cannot find module '/home/root/apps/config-manager/out/webapp/frontend/node_modules/yorkie/bin/install.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm64"})
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! yorkie@2.0.0 install: `node bin/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the yorkie@2.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
When inspecting the NPM debug logs:
22191 verbose stack Error: yorkie@2.0.0 install: `node bin/install.js`
22191 verbose stack Exit status 1
22191 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/nodejs/node-v10.15.1-linux-arm64/lib/node_modules/np
m/node_modules/npm-lifecycle/index.js:301:16)
22191 verbose stack at EventEmitter.emit (events.js:189:13)
22191 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/nodejs/node-v10.15.1-linux-arm64/lib/node_modules/np
m/node_modules/npm-lifecycle/lib/spawn.js:55:14)
22191 verbose stack at ChildProcess.emit (events.js:189:13)
22191 verbose stack at maybeClose (internal/child_process.js:970:16)
22191 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
22192 verbose pkgid yorkie@2.0.0
22193 verbose cwd /home/root/apps/config-manager/out/webapp/frontend
22194 verbose Linux 4.14.0-xilinx-v2018.2
22195 verbose argv "/usr/local/lib/nodejs/node-v10.15.1-linux-arm64/bin/node" "/usr/bin/npm" "install" "@vue/cli-service
"
22196 verbose node v10.15.1
22197 verbose npm v6.4.1
22198 error code ELIFECYCLE
22199 error errno 1
22200 error yorkie@2.0.0 install: `node bin/install.js`
22200 error Exit status 1
22201 error Failed at the yorkie@2.0.0 install script.
The same error is encountered when doing:
npm install @vue/cli
npm install yorkie
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
npm run server throws error sh: 1: vue-cli-service: not found
Run: npm i @vue/cli-service. That's because your dependence is not installed.
Read more >Vue CLI Install
Vue UI install. Vuetify can also be installed using Vue UI, the new visual application for Vue CLI. Ensure that you have the...
Read more >Troubleshooting
If you install @vue/cli-service as root user or with sudo , there might ... running npm with root privileges because install scripts can...
Read more >vue/cli-service
@vue/cli-service. TypeScript icon, indicating that this package has built-in type declarations. 5.0.8 • Public • Published 6 months ago.
Read more >Netlify build error: vue-cli-service not found - Hao's learning log
I recently created a project using Vue CLI 3, and after got the project set up to a basic state I decided to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For security reasons, if you run
npm install
asroot
, npm will set the user to “nobody” when running postinstall scripts, which does not have access to the project directory, thus the error message.This error (Yorkie@2.0.0) is related to the security attributes of the project-vuejs folder. So, create your projects outside the root / folder, make Linux updates (Ubuntu …) and success to everyone!