NuxtJS
版本2.10.2
NPM
版本6.13.1
NodeJS
版本13.2
操作系统Windows
IDE WebStorm
在安装NuxtJS Axios
模块之后,NuxtJS
停止运行时出现错误:
Error: Cannot find module 'wrap-ansi'
我已经在全球和本地安装了wrap-ansi
,但无法正常工作...
package.json
数据
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start",
"generate": "nuxt generate"
},
"dependencies": {
"@nuxtjs/axios": "^5.3.6",
"bootstrap": "^4.3.1",
"nuxt": "^2.0.0"
}
日志数据
10 silly lifecycle nuxtjs2@1.0.0~dev: Args: [ '/d /s /c', 'nuxt' ]
11 silly lifecycle nuxtjs2@1.0.0~dev: Returned: code: 1 signal: null
12 info lifecycle nuxtjs2@1.0.0~dev: Failed to exec dev script
13 verbose stack Error: nuxtjs2@1.0.0 dev: `nuxt`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:210:5)
13 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:210:5)
13 verbose stack at maybeClose (internal/child_process.js:1023:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:281:5)
14 verbose pkgid nuxtjs2@1.0.0
15 verbose cwd P:\PROJECTS\nuxtjs2
16 verbose Windows_NT 10.0.17763
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev"
18 verbose node v13.2.0
19 verbose npm v6.13.1
20 error code ELIFECYCLE
21 error errno 1
22 error nuxtjs2@1.0.0 dev: `nuxt`
22 error Exit status 1
23 error Failed at the nuxtjs2@1.0.0 dev script.
23 error This is probably not a problem with npm. There is likely additional logging output above.