Vue日常开发问题

1.sh: webpack-dev-server: command not found

2.

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/nvm/0.37.2/versions/node/v10.15.1/bin/node',
1 verbose cli   '/usr/local/Cellar/nvm/0.37.2/versions/node/v10.15.1/lib/node_modules/npm/bin/npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dev',
1 verbose cli   '--scripts-prepend-node-path=auto' ]
2 info using npm@6.4.1
3 info using node@v10.15.1
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle Takoki@1.0.0~predev: Takoki@1.0.0
6 info lifecycle Takoki@1.0.0~dev: Takoki@1.0.0
7 verbose lifecycle Takoki@1.0.0~dev: unsafe-perm in lifecycle true
8 verbose lifecycle Takoki@1.0.0~dev: PATH: /usr/local/Cellar/nvm/0.37.2/versions/node/v10.15.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/rubert/vuepress/Takoki/node_modules/.bin:/usr/local/Cellar/nvm/0.37.2/versions/node/v10.15.1/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/Users/rubert/Documents/DevelopTools/apache-maven-3.5.0/bin:/Users/rubert/Documents/DevelopTools/gradle-5.4/bin:/Users/rubert/Documents/DevelopTools/android-ndk-r16-beta1:/usr/local/bin:/Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre:/Users/rubert/Documents/Android/adt-bundle-mac-x86_64-20131030/sdk//platform-tools:/usr/local/mysql/bin:/Users/rubert/Documents/DevelopTools/dart-sdk/bin:/Users/rubert/Documents/DevelopTools/flutter/bin
9 verbose lifecycle Takoki@1.0.0~dev: CWD: /Users/rubert/vuepress/Takoki
10 silly lifecycle Takoki@1.0.0~dev: Args: [ '-c', 'vuepress dev docs' ]
11 info lifecycle Takoki@1.0.0~dev: Failed to exec dev script
12 verbose stack Error: Takoki@1.0.0 dev: `vuepress dev docs`
12 verbose stack spawn ENOENT
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/Cellar/nvm/0.37.2/versions/node/v10.15.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack     at ChildProcess.emit (events.js:189:13)
12 verbose stack     at maybeClose (internal/child_process.js:970:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
13 verbose pkgid Takoki@1.0.0
14 verbose cwd /Users/rubert/vuepress/Takoki
15 verbose Darwin 20.2.0
16 verbose argv "/usr/local/Cellar/nvm/0.37.2/versions/node/v10.15.1/bin/node" "/usr/local/Cellar/nvm/0.37.2/versions/node/v10.15.1/lib/node_modules/npm/bin/npm-cli.js" "run" "dev" "--scripts-prepend-node-path=auto"
17 verbose node v10.15.1
18 verbose npm  v6.4.1
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error Takoki@1.0.0 dev: `vuepress dev docs`
23 error spawn ENOENT
24 error Failed at the Takoki@1.0.0 dev script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

 

posted on 2019-05-30 10:21  洛易  阅读(211)  评论(0编辑  收藏  举报