Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行npm run 命令失败 #4

Open
JasonCSharpCoder opened this issue Nov 7, 2016 · 8 comments
Open

执行npm run 命令失败 #4

JasonCSharpCoder opened this issue Nov 7, 2016 · 8 comments

Comments

@JasonCSharpCoder
Copy link

作者你好,按照你提供的安装和启动方式,安装没有问题,但是在执行npm run dev
'caniuse-db/features-json/transforms2d.json 请问这个,需要安装什么?

@liujians
Copy link
Owner

liujians commented Nov 7, 2016

@JasonCSharpCoder 您好,是否可以贴出更详细的错误信息或者截图呢?

@qianthinkover
Copy link


m3g9bem h_chg4 hv4kriu

您好!错误如图,我重新配置了一次,还是不行,

@liujians
Copy link
Owner

liujians commented Nov 8, 2016

@qianthinkover 您好,我这里重新尝试了一下没有遇到这个问题、您所缺少的文件我这里重新安装也依然下载到了、请尝试升级node到更新的版本、或者尝试下重新安装依赖
image
image

@zion223
Copy link

zion223 commented Nov 8, 2016

应该是他们直接下载了,应该用git命令才可以

@niniun1024
Copy link

你好,npm run dev报下面的错,node版本换到4.4..4还是报错

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'D:\Program Files (x86)\Nodist\bin\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle [email protected]predev: [email protected]
6 silly lifecycle [email protected]
predev: no script for predev, continuing
7 info lifecycle [email protected]dev: [email protected]
8 verbose lifecycle [email protected]
dev: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]dev: PATH: D:\Program Files (x86)\Nodist\bin\node_modules\npm\bin\node-gyp-bin;F:\vue\project\vue-adminLte\node_modules.bin;C:\Program Files\nodejs;D:\Program Files\ImageMagick-6.9.2-Q16;d:\program files\graphicsmagick-1.3.21-q16;C:\ProgramData\Oracle\Java\javapath;C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\soft\TortoiseSVN\bin;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit;D:\Program Files\Java\jdk1.8.0_45bin;D:\Program Files (x86)\apache-ant-1.9.4bin;%ANDROID_HOME%platform-tools;%ANDROID_HOME%tools;D:\Program Files\apache-ant-1.9.4\bin;D:\Program Files\Java\jdk1.8.0_45\bin;D:\Program Files\adt-bundle-windows-x86_64-20131030\sdk\platform-tools;D:\Program Files\adt-bundle-windows-x86_64-20131030\sdk\tools;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Lenovo\Fingerprint Manager Pro;E:\soft\xampp\php;D:\Program Files\GraphicsMagick-1.3.21-Q16;D:\Program Files\ImageMagick-6.9.2-Q16;D:\Program Files\nvmw;D:\Program Files\nvm;D:\nvm;C:\Program Files\nodejs;D:\Program Files (x86)\Nodist\bin;D:\Program Files\python;C:\Program Files (x86)\Git\bin;C:\Ruby200-x64\bin;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;D:\Program Files\Java\jdk1.8.0_45\jre;D:\java\programfile\maven\bin;E:\soft\xampp\php;C:\Users\Xiao106347.nvmw;C:\Users\Xiao106347\AppData\Roaming\npm;D:\Program Files (x86)\UltraEdit;C:\Users\Xiao106347\AppData\Local\atom\bin
10 verbose lifecycle [email protected]
dev: CWD: F:\vue\project\vue-adminLte
11 silly lifecycle [email protected]dev: Args: [ '/d /s /c', 'node build/dev-server.js' ]
12 silly lifecycle [email protected]
dev: Returned: code: 1 signal: null
13 info lifecycle [email protected]~dev: Failed to exec dev script
14 verbose stack Error: [email protected] dev: node build/dev-server.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (D:\Program Files (x86)\Nodist\bin\node_modules\npm\lib\utils\lifecycle.js:245:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess. (D:\Program Files (x86)\Nodist\bin\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:818:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid [email protected]
16 verbose cwd F:\vue\project\vue-adminLte
17 error Windows_NT 6.2.9200
18 error argv "C:\Program Files\nodejs\node.exe" "D:\Program Files (x86)\Nodist\bin\node_modules\npm\bin\npm-cli.js" "run" "dev"
19 error node v5.3.0
20 error npm v3.9.5
21 error code ELIFECYCLE
22 error [email protected] dev: node build/dev-server.js
22 error Exit status 1
23 error Failed at the [email protected] dev script 'node build/dev-server.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the hms package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node build/dev-server.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs hms
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls hms
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

@JasonCSharpCoder
Copy link
Author

我把node 卸载安装6.0稳定版后重启机器 就可以了

At 2016-11-22 11:54:43, "jyy12" [email protected] wrote:

你好,npm run dev报下面的错,node版本换到4.4..4还是报错

0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'D:\Program Files (x86)\Nodist\bin\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle [email protected]: [email protected]
6 silly lifecycle [email protected]: no script for predev, continuing
7 info lifecycle [email protected]: [email protected]
8 verbose lifecycle [email protected]: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]: PATH: D:\Program Files (x86)\Nodist\bin\node_modules\npm\bin\node-gyp-bin;F:\vue\project\vue-adminLte\node_modules.bin;C:\Program Files\nodejs;D:\Program Files\ImageMagick-6.9.2-Q16;d:\program files\graphicsmagick-1.3.21-q16;C:\ProgramData\Oracle\Java\javapath;C:\Perl64\site\bin;C:\Perl64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\soft\TortoiseSVN\bin;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit;D:\Program Files\Java\jdk1.8.0_45bin;D:\Program Files (x86)\apache-ant-1.9.4bin;%ANDROID_HOME%platform-tools;%ANDROID_HOME%tools;D:\Program Files\apache-ant-1.9.4\bin;D:\Program Files\Java\jdk1.8.0_45\bin;D:\Program Files\adt-bundle-windows-x86_64-20131030\sdk\platform-tools;D:\Program Files\adt-bundle-windows-x86_64-20131030\sdk\tools;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x86;C:\Program Files (x86)\Intel\OpenCL SDK\3.0\bin\x64;C:\Program Files\Lenovo\Fingerprint Manager Pro;E:\soft\xampp\php;D:\Program Files\GraphicsMagick-1.3.21-Q16;D:\Program Files\ImageMagick-6.9.2-Q16;D:\Program Files\nvmw;D:\Program Files\nvm;D:\nvm;C:\Program Files\nodejs;D:\Program Files (x86)\Nodist\bin;D:\Program Files\python;C:\Program Files (x86)\Git\bin;C:\Ruby200-x64\bin;C:\RailsInstaller\Git\cmd;C:\RailsInstaller\Ruby1.9.3\bin;D:\Program Files\Java\jdk1.8.0_45\jre;D:\java\programfile\maven\bin;E:\soft\xampp\php;C:\Users\Xiao106347.nvmw;C:\Users\Xiao106347\AppData\Roaming\npm;D:\Program Files (x86)\UltraEdit;C:\Users\Xiao106347\AppData\Local\atom\bin
10 verbose lifecycle [email protected]: CWD: F:\vue\project\vue-adminLte
11 silly lifecycle [email protected]: Args: [ '/d /s /c', 'node build/dev-server.js' ]
12 silly lifecycle [email protected]: Returned: code: 1 signal: null
13 info lifecycle [email protected]~dev: Failed to exec dev script
14 verbose stack Error: [email protected] dev: node build/dev-server.js
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (D:\Program Files (x86)\Nodist\bin\node_modules\npm\lib\utils\lifecycle.js:245:16)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at EventEmitter.emit (events.js:172:7)
14 verbose stack at ChildProcess. (D:\Program Files (x86)\Nodist\bin\node_modules\npm\lib\utils\spawn.js:24:14)
14 verbose stack at emitTwo (events.js:87:13)
14 verbose stack at ChildProcess.emit (events.js:172:7)
14 verbose stack at maybeClose (internal/child_process.js:818:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
15 verbose pkgid [email protected]
16 verbose cwd F:\vue\project\vue-adminLte
17 error Windows_NT 6.2.9200
18 error argv "C:\Program Files\nodejs\node.exe" "D:\Program Files (x86)\Nodist\bin\node_modules\npm\bin\npm-cli.js" "run" "dev"
19 error node v5.3.0
20 error npm v3.9.5
21 error code ELIFECYCLE
22 error [email protected] dev: node build/dev-server.js
22 error Exit status 1
23 error Failed at the [email protected] dev script 'node build/dev-server.js'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the hms package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error node build/dev-server.js
23 error You can get information on how to open an issue for this project with:
23 error npm bugs hms
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls hms
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@williamjie
Copy link

williamjie commented Dec 19, 2016

之前遇到过这种问题,重新下载代码(重新执行npm install 老版本下载的是老的各种兼容包)

@yutao23
Copy link

yutao23 commented Feb 23, 2017

改了项目名之后就打不开了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants