vue.v3@0.1.0 服务:`vue-cli-service serve` [英] vue.v3@0.1.0 serve: `vue-cli-service serve`

查看:678
本文介绍了vue.v3@0.1.0 服务:`vue-cli-service serve`的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装 bootstarp-vue " npm install bootstarp-vue " ,当我运行项目时出现错误.

i install bootstarp-vue " npm install bootstarp-vue " , i get a error When i run the project .

λ npm run serve

> vue.v3@0.1.0 serve G:\vue\vue.v3
> vue-cli-service serve

'vue-cli-service' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue.v3@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue.v3@0.1.0 serve 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!     C:\Users\hp\AppData\Roaming\npm-cache\_logs\2019-12-02T10_50_03_822Z-debug.log

我尝试过"npm install ",但没有任何变化--- 我删除了 node_module 并运行 npm install 并收到此错误

I have tried " npm install " and nothing change --- i removed the node_module and run npm install and get this error

 λ npm install
npm ERR! code EPERM
npm ERR! syscall open
npm ERR! path G:\vue\vue.v3\node_modules\register-service-worker\npm-shrinkwrap.json
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, open 'G:\vue\vue.v3\node_modules\register-service-worker\npm-shrinkwrap.json'
npm ERR!  [OperationalError: EPERM: operation not permitted, open 'G:\vue\vue.v3\node_modules\register-service-worker\npm-shrinkwrap.json'] {
npm ERR!   cause: [Error: EPERM: operation not permitted, open 'G:\vue\vue.v3\node_modules\register-service-worker\npm-shrinkwrap.json'] {
npm ERR!     errno: -4048,
npm ERR!     code: 'EPERM',
npm ERR!     syscall: 'open',
npm ERR!     path: 'G:\\vue\\vue.v3\\node_modules\\register-service-worker\\npm-shrinkwrap.json'
npm ERR!   },
npm ERR!   isOperational: true,
npm ERR!   stack: "Error: EPERM: operation not permitted, open 'G:\\vue\\vue.v3\\node_modules\\register-service-worker\\npm-shrinkwrap.json'",
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'open',
npm ERR!   path: 'G:\\vue\\vue.v3\\node_modules\\register-service-worker\\npm-shrinkwrap.json',
npm ERR!   parent: 'vue.v3'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\hp\AppData\Roaming\npm-cache\_logs\2019-12-02T11_11_58_100Z-debug.log

推荐答案

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hypermarket@0.1.0 serve: `vue-cli-service serve`
npm ERR!
npm ERR! Failed at the hypermarket@0.1.0 serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

当您从 package.js 中删除依赖项时会发生这种情况.

---->例如:当我通过 npm remove eslint 命令删除 "eslint" 时,遇到了这个错误.

---->For example: when i removed the "eslint" by npm remove eslint command , encountered this error.

---->我的解决办法是: npm install eslint

我通过使用 git 更改比较package.js"发现了我的问题.

i found the my problem by compare "package.js" using git changes.

这篇关于vue.v3@0.1.0 服务:`vue-cli-service serve`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆