我是以管理员身份运行idea,通过Terminal运行的npm install,之后报错。
报错如下:
PS C:\Users\Mr.wu\Desktop\考试系统\SpringBoot-Vue-OnlineExam\exam> npm install
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.2 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN @babel/plugin-transform-instanceof@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer d
ependencies yourself.
npm WARN @babel/preset-es2015@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer dependencies yo
urself.
npm WARN @babel/plugin-transform-arrow-functions@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install p
eer dependencies yourself.
npm WARN @babel/plugin-transform-block-scoped-functions@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must in
stall peer dependencies yourself.
npm WARN @babel/plugin-transform-block-scoping@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install pee
r dependencies yourself.
npm WARN @babel/plugin-transform-classes@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer depe
ndencies yourself.
npm WARN @babel/plugin-transform-computed-properties@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must insta
ll peer dependencies yourself.
npm WARN @babel/plugin-transform-destructuring@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install pee
r dependencies yourself.
npm WARN @babel/plugin-transform-duplicate-keys@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install pe
er dependencies yourself.
npm WARN @babel/plugin-transform-for-of@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer depen
dencies yourself.
npm WARN @babel/plugin-transform-function-name@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install pee
r dependencies yourself.
npm WARN @babel/plugin-transform-literals@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer dep
endencies yourself.
npm WARN @babel/plugin-transform-modules-amd@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer
dependencies yourself.
npm WARN @babel/plugin-transform-modules-commonjs@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install
peer dependencies yourself.
npm WARN @babel/plugin-transform-modules-systemjs@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install
peer dependencies yourself.
npm WARN @babel/plugin-transform-modules-umd@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer
dependencies yourself.
npm WARN @babel/plugin-transform-object-super@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer
dependencies yourself.
npm WARN @babel/plugin-transform-parameters@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer d
ependencies yourself.
npm WARN @babel/plugin-transform-regenerator@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer
dependencies yourself.
npm WARN @babel/plugin-transform-shorthand-properties@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must inst
all peer dependencies yourself.
npm WARN @babel/plugin-transform-spread@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer depen
dencies yourself.
npm WARN @babel/plugin-transform-sticky-regex@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install peer
dependencies yourself.
npm WARN @babel/plugin-transform-template-literals@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install
peer dependencies yourself.
npm WARN @babel/plugin-transform-typeof-symbol@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install pee
r dependencies yourself.
npm WARN @babel/plugin-transform-unicode-regex@7.0.0-beta.53 requires a peer of @babel/core@>=7.0.0-beta.50 <7.0.0-rc.0 but none is installed. You must install pee
r dependencies yourself.
npm WARN ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
added 3 packages from 8 contributors and audited 1416 packages in 40.282s
3 packages are looking for funding
run npm fund
for details
found 229 vulnerabilities (5 low, 100 moderate, 99 high, 25 critical)
run npm audit fix
to fix them, or npm audit
for details
求解决
试一下 cnpm install
npm audit fix
npm audit fix 运行这个
这个都是警告 。没事 不影响运行吧
没报错啊
首先是尽量不要有中文和大写字母出现在目录名中
npm install 在idea里报错可以尝试将idea添加到系统管理员环境中
使用npm install推荐在管理员权限的shell中使用
WARN 是警告的意思,提示版本问题,但不影响执行,可以跑通的话可以忽略
node_modules
依赖npm rm -rf node_modules
报错的插件
npm install --save core-js
npm install
或者 yarn install
npm install
yarn install
npm run dev
运行启动 npm run dev
[webpack-cli] Error: Unknown option '--inline'
[webpack-cli] Run 'webpack --help' to see available commands and options
这里怎么办?