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 run dev报错 #6

Open
aaronsuscb opened this issue Jul 8, 2019 · 1 comment
Open

npm run dev报错 #6

aaronsuscb opened this issue Jul 8, 2019 · 1 comment

Comments

@aaronsuscb
Copy link

按如下方式安装:
1)npm install -g cnpm --registry=https://registry.npm.taobao.org
2)cnpm install
3) npm run dev
报如下错误

C:\dev\workshop\vue\GitDataV-master\node_modules_open@6.4.0@open\index.js:29
...options
^^^

SyntaxError: Unexpected token ...
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:533:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (C:\dev\workshop\vue\GitDataV-master\node_modules_@[email protected]@@VUE\cli-shared
-utils\lib\openBrowser.js:9:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: vue-cli-service serve
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev 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\Administrator\AppData\Roaming\npm-cache_logs\2019-07-08T14_29_39_933Z-debug.log

@HongqingCao
Copy link
Owner

直接npm install安装即可

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

2 participants