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

npm install 出错 #26

Open
flodetan opened this issue Sep 16, 2021 · 3 comments
Open

npm install 出错 #26

flodetan opened this issue Sep 16, 2021 · 3 comments

Comments

@flodetan
Copy link

image

`cnpm install
✔ Installed 47 packages
✔ Linked 0 latest versions
[1/1] scripts.postinstall [email protected] run "electron-builder install-app-deps", root: "/Users/ghchen/IdeaProjects/electron-vue-cloud-music"
sh: electron-builder: command not found
[npminstall:runscript:error] [email protected] scripts.postinstall run "electron-builder install-app-deps" error: Error [RunScriptError]: Run "sh -c electron-builder install-app-deps" error, exit code 127
at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (node:events:394:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5) {
stdio: [Object],
exitcode: 127
}
✖ Install fail! RunScriptError: post install error, please remove node_modules before retry!
Run "sh -c electron-builder install-app-deps" error, exit code 127
RunScriptError: Run "sh -c electron-builder install-app-deps" error, exit code 127
at ChildProcess. (/usr/local/lib/node_modules/cnpm/node_modules/runscript/index.js:96:21)
at ChildProcess.emit (node:events:394:28)
at maybeClose (node:internal/child_process:1064:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:301:5)
npminstall version: 5.0.2
npminstall args: /usr/local/Cellar/node/16.8.0/bin/node /usr/local/lib/node_modules/cnpm/node_modules/npminstall/bin/install.js --fix-bug-versions --china --userconfig=/Users/ghchen/.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.nlark.com

`

@qhyou
Copy link

qhyou commented Jan 20, 2022

我也遇到这样的错误,咋解决的呀哥们儿

@beautifulwhale
Copy link

可能跟电脑里没有安装electron有关系
您可以去官网安装一下试试

@woaini521
Copy link

yarn add vue-cli-plugin-electron-builder -D 试一下

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

4 participants