Vue 报错 | warn ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must insta
git clone 一个 vue 项目,npm install ,结果报错:warn ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.没办法,解决呗,找一下日志。npm ERR! code ELIF...
git clone 一个 vue 项目,npm install ,结果报错:
warn ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
没办法,解决呗,找一下日志。
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.0 postinstall 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! E:\Java\nodejs\node_cache\_logs\2019-08-08T14_25_20_239Z-debug.log
解决办法
安装对应版本
npm install ajv@^6.0.0
npm install node-sass@4.9.0
如果报错,是不是却少python环境
最后在,安装 node_modules
npm install
具体报错详细信息:
..............
3192 silly saveTree | | +-- get-stream@3.0.0
3192 silly saveTree | | +-- is-stream@1.1.0
3192 silly saveTree | | +-- npm-run-path@2.0.2
3192 silly saveTree | | | `-- path-key@2.0.1
3192 silly saveTree | | +-- p-finally@1.0.0
3192 silly saveTree | | `-- strip-eof@1.0.0
3192 silly saveTree | `-- mem@1.1.0
3192 silly saveTree +-- read-pkg-up@2.0.0
3192 silly saveTree | `-- read-pkg@2.0.0
3192 silly saveTree | +-- load-json-file@2.0.0
3192 silly saveTree | | +-- pify@2.3.0
3192 silly saveTree | | `-- strip-bom@3.0.0
3192 silly saveTree | `-- path-type@2.0.0
3192 silly saveTree | `-- pify@2.3.0
3192 silly saveTree +-- which-module@2.0.0
3192 silly saveTree +-- y18n@3.2.1
3192 silly saveTree `-- yargs-parser@7.0.0
3192 silly saveTree `-- camelcase@4.1.0
3193 warn ajv-keywords@3.2.0 requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
3194 warn echarts-liquidfill@2.0.3 requires a peer of echarts@^4.1.0 but none is installed. You must install peer dependencies yourself.
3195 warn v-charts@1.19.0 requires a peer of echarts@>3.0.0 but none is installed. You must install peer dependencies yourself.
3196 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modules\fsevents):
3197 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
3198 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
3198 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
3198 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: win32
3198 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
3199 verbose stack Error: node-sass@4.9.0 postinstall: `node scripts/build.js`
3199 verbose stack Exit status 1
3199 verbose stack at EventEmitter.<anonymous> (E:\Java\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
3199 verbose stack at EventEmitter.emit (events.js:203:13)
3199 verbose stack at ChildProcess.<anonymous> (E:\Java\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
3199 verbose stack at ChildProcess.emit (events.js:203:13)
3199 verbose stack at maybeClose (internal/child_process.js:1021:16)
3199 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
3200 verbose pkgid node-sass@4.9.0
3201 verbose cwd D:\Desktop\家庭云\wbw-mall\mall-admin-web
3202 verbose Windows_NT 6.1.7601
3203 verbose argv "E:\\Java\\nodejs\\node.exe" "E:\\Java\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--scripts-prepend-node-path=auto"
3204 verbose node v12.6.0
3205 verbose npm v6.9.0
3206 error code ELIFECYCLE
3207 error errno 1
3208 error node-sass@4.9.0 postinstall: `node scripts/build.js`
3208 error Exit status 1
3209 error Failed at the node-sass@4.9.0 postinstall script.
3209 error This is probably not a problem with npm. There is likely additional logging output above.
3210 verbose exit [ 1, true ]
更多推荐
所有评论(0)