when I use the vue-cli
command sudo vue create hello-world
to create a new project, the following error occurs as long as I check the
babel
or eslint
options in the configuration.
[fsevents] Success: "/Users/tanghaoyi//work/VueSingle/hello-world/node_modules/@vue/cli-plugin-babel/node_modules/webpack/node_modules/watchpack/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v59-darwin-x64/fse.node" is installed via remote
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/tanghaoyi/node_modules/node/bin/node" "/Users/tanghaoyi/node_modules/.bin/npm" "install" "--loglevel" "error"
npm ERR! node v9.0.0
npm ERR! npm v2.15.12
npm ERR! code EPEERINVALID
npm ERR! peerinvalid The package @babel/core@7.0.0-beta.47 does not satisfy its siblings" peerDependencies requirements!
npm ERR! peerinvalid Peer babel-loader@8.0.4 wants @babel/core@^7.0.0
npm ERR! Please include the following file with any support request:
npm ERR! /Users/tanghaoyi//VueSingle/hello-world/npm-debug.log
ERROR command failed: npm install --loglevel error
the path in PS: is abbreviated by a slightly longer path (not a Chinese path).
in addition, if I do not check these two babel
and eslint
options, it seems that I can successfully establish
has been ruled out for several hours, but the problem has not been found. Several versions of npm have been changed. I suspect it is a compatibility problem.
node version
: V8.11.4
npm version
: 5.6.0