鍍金池/ 問答/HTML/ iview 2.73無法安裝自行修改編譯!

iview 2.73無法安裝自行修改編譯!

我在github 克隆了iview項目到本地來執(zhí)行 yarn install 提示報錯了,項目無法安裝!

0 info it worked if it ends with ok
1 verbose cli [ 'D:\\SoftWare\\NodeJs\\node.exe',
1 verbose cli   'C:\\Users\\truncate\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'run',
1 verbose cli   'dist' ]
2 info using npm@3.10.10
3 info using node@v6.10.3
4 verbose run-script [ 'predist', 'dist', 'postdist' ]
5 info lifecycle iview@2.7.3~predist: iview@2.7.3
6 silly lifecycle iview@2.7.3~predist: no script for predist, continuing
7 info lifecycle iview@2.7.3~dist: iview@2.7.3
8 verbose lifecycle iview@2.7.3~dist: unsafe-perm in lifecycle true
9 verbose lifecycle iview@2.7.3~dist: PATH: C:\Users\truncate\AppData\Roaming\npm\node_modules\npm\bin\node-gyp-bin;D:\Develop\Vue\user_center\node_modules\iview\node_modules\.bin;D:\Develop\Vue\user_center\node_modules\.bin;D:\Develop\Vue\user_center\node_modules\iview\node_modules\.bin;C:\Users\truncate\AppData\Local\Yarn\config\link\node_modules\.bin;D:\Develop\Vue\user_center\node_modules\iview\node_modules\.bin;C:\Users\truncate\AppData\Local\Yarn\config\link\node_modules\.bin;C:\Users\truncate\AppData\Local\Yarn\bin;D:\SoftWare\lib\node_modules\npm\bin\node-gyp-bin;D:\SoftWare\NodeJs\node_modules\npm\bin\node-gyp-bin;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\SoftWare\Git\cmd;D:\SoftWare\TortoiseSVN\bin;D:\SoftWare\Java\jdk1.8.0_112\bin;D:\Develop\AndroidSdk\tools;D:\Develop\AndroidSdk\platform-tools;D:\SoftWare\VirtualBox;C:\ProgramData\ComposerSetup\bin;D:\SoftWare\Python27;D:\SoftWare\Yarn\bin;D:\SoftWare\NodeJs\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;D:\SoftWare\Redis;D:\SoftWare\Golang\bin;D:\Develop\phpStudy2016\php\php-7.0.12-nts;;D:\SoftWare\Microsoft VS Code\bin;C:\Users\truncate\AppData\Local\Microsoft\WindowsApps;C:\Users\truncate\AppData\Roaming\Composer\vendor\bin;C:\Users\truncate\AppData\Local\Yarn\bin;C:\Users\truncate\AppData\Roaming\npm;C:\Users\truncate\AppData\Local\Programs\Fiddler
10 verbose lifecycle iview@2.7.3~dist: CWD: D:\Develop\Vue\user_center\node_modules\iview
11 silly lifecycle iview@2.7.3~dist: Args: [ '/d /s /c',
11 silly lifecycle   'npm run dist:style && npm run dist:dev && npm run dist:prod && npm run dist:locale' ]
12 silly lifecycle iview@2.7.3~dist: Returned: code: 1  signal: null
13 info lifecycle iview@2.7.3~dist: Failed to exec dist script
14 verbose stack Error: iview@2.7.3 dist: `npm run dist:style && npm run dist:dev && npm run dist:prod && npm run dist:locale`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (C:\Users\truncate\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (C:\Users\truncate\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:886:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid iview@2.7.3
16 verbose cwd D:\Develop\Vue\user_center\node_modules\iview
17 error Windows_NT 10.0.15063
18 error argv "D:\\SoftWare\\NodeJs\\node.exe" "C:\\Users\\truncate\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "run" "dist"
19 error node v6.10.3
20 error npm  v3.10.10
21 error code ELIFECYCLE
22 error iview@2.7.3 dist: `npm run dist:style && npm run dist:dev && npm run dist:prod && npm run dist:locale`
22 error Exit status 1
23 error Failed at the iview@2.7.3 dist script 'npm run dist:style && npm run dist:dev && npm run dist:prod && npm run dist:locale'.
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 iview package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     npm run dist:style && npm run dist:dev && npm run dist:prod && npm run dist:locale
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs iview
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls iview
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

我想修改點東西也無法修改,想問有遇到的朋友嗎?這種問題怎么解決?

回答
編輯回答
野橘

建議嘗試

$ rm -rf node_modules
$ cnpm install
2017年2月5日 03:15