win10下 nodejs报错:error Windows_NT 10.0.14393

0 info it worked if it ends with ok
1 verbose cli [ 'D:\Program Files\nodejs\node.exe',
1 verbose cli 'D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'dev' ]
2 info using npm@3.10.9
3 info using node@v6.9.2
4 warn invalid config registry="registry"
5 warn invalid config Must be a full url with 'http://'
6 verbose run-script [ 'predev', 'dev', 'postdev' ]
7 info lifecycle vue@1.0.0~predev: vue@1.0.0
8 silly lifecycle vue@1.0.0~predev: no script for predev, continuing
9 info lifecycle vue@1.0.0~dev: vue@1.0.0
10 verbose lifecycle vue@1.0.0~dev: unsafe-perm in lifecycle true
11 verbose lifecycle vue@1.0.0~dev: PATH: D:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;E:\WEB\vue\node_modules.bin;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\Program Files\TortoiseSVN\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;D:\Program Files (x86)\VisualSVN Server\bin;D:\Program Files\nodejs\;C:\Users\King\AppData\Local\Microsoft\WindowsApps;C:\Users\King\AppData\Roaming\npm
12 verbose lifecycle vue@1.0.0~dev: CWD: E:\WEB\vue
13 silly lifecycle vue@1.0.0~dev: Args: [ '/d /s /c', 'node build/dev-server.js' ]
14 silly lifecycle vue@1.0.0~dev: Returned: code: 1 signal: null
15 info lifecycle vue@1.0.0~dev: Failed to exec dev script
16 verbose stack Error: vue@1.0.0 dev: node build/dev-server.js
16 verbose stack Exit status 1
16 verbose stack at EventEmitter. (D:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
16 verbose stack at emitTwo (events.js:106:13)
16 verbose stack at EventEmitter.emit (events.js:191:7)
16 verbose stack at ChildProcess. (D:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
16 verbose stack at emitTwo (events.js:106:13)
16 verbose stack at ChildProcess.emit (events.js:191:7)
16 verbose stack at maybeClose (internal/child_process.js:877:16)
16 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
17 verbose pkgid vue@1.0.0
18 verbose cwd E:\WEB\vue
19 error Windows_NT 10.0.14393
20 error argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "dev"
21 error node v6.9.2
22 error npm v3.10.9
23 error code ELIFECYCLE
24 error vue@1.0.0 dev: node build/dev-server.js
24 error Exit status 1
25 error Failed at the vue@1.0.0 dev script 'node build/dev-server.js'.
25 error Make sure you have the latest version of node.js and npm installed.
25 error If you do, this is most likely a problem with the vue package,
25 error not with npm itself.
25 error Tell the author that this fails on your system:
25 error node build/dev-server.js
25 error You can get information on how to open an issue for this project with:
25 error npm bugs vue
25 error Or if that isn't available, you can get their info via:
25 error npm owner ls vue
25 error There is likely additional logging output above.
26 verbose exit [ 1, true ]

全部内容如上,求各位大神支招

3个回答

去nodejs目录,删除npmrc试试,我是这么解决的。

估计你是使用了淘宝的cnpm 如果这样的话不要输入npm 用cnpm来代替它即可

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
error Windows_NT 10.0.15063 33
![cmd进入控制台输入npm install -g cnpm --regbistry=https://registry.npm.taobao.org](https://img-ask.csdn.net/upload/201706/13/1497347726_582646.png)0 info it worked if it ends with ok 1 verbose cli [ 'E:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli '--global', 1 verbose cli '--production', 1 verbose cli 'windows-build-tools' ] 2 info using npm@3.10.10 3 info using node@v6.11.0 4 silly loadCurrentTree Starting 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 silly fetchPackageMetaData windows-build-tools 8 silly fetchNamedPackageData windows-build-tools 9 silly mapToRegistry name windows-build-tools 10 silly mapToRegistry using default registry 11 silly mapToRegistry registry https://registry.npmjs.org/ 12 silly mapToRegistry data Result { 12 silly mapToRegistry raw: 'windows-build-tools', 12 silly mapToRegistry scope: null, 12 silly mapToRegistry escapedName: 'windows-build-tools', 12 silly mapToRegistry name: 'windows-build-tools', 12 silly mapToRegistry rawSpec: '', 12 silly mapToRegistry spec: 'latest', 12 silly mapToRegistry type: 'tag' } 13 silly mapToRegistry uri https://registry.npmjs.org/windows-build-tools 14 verbose request uri https://registry.npmjs.org/windows-build-tools 15 verbose request no auth needed 16 info attempt registry request try #1 at 17:40:57 17 verbose request id a35d470614253dc6 18 http request GET https://registry.npmjs.org/windows-build-tools 19 info retry will retry, error on last attempt: Error: tunneling socket could not be established, statusCode=405 20 info attempt registry request try #2 at 17:41:07 21 http request GET https://registry.npmjs.org/windows-build-tools 22 info retry will retry, error on last attempt: Error: tunneling socket could not be established, statusCode=405 23 verbose stack Error: kill ENOSYS 23 verbose stack at exports._errnoException (util.js:1018:11) 23 verbose stack at process.kill (internal/process.js:190:13) 23 verbose stack at process.listener (E:\Program Files\nodejs\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_modules\signal-exit\index.js:86:15) 23 verbose stack at emitNone (events.js:91:20) 23 verbose stack at process.emit (events.js:185:7) 23 verbose stack at processEmit (E:\Program Files\nodejs\node_modules\npm\node_modules\npmlog\node_modules\gauge\node_modules\signal-exit\index.js:146:32) 23 verbose stack at processEmit (E:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-client\node_modules\npmlog\node_modules\gauge\node_modules\signal-exit\index.js:146:32) 23 verbose stack at Signal.wrap.onsignal (internal/process.js:217:44) 24 verbose cwd C:\Users\jinfeng.tan.OFFICE 25 error Windows_NT 10.0.15063 26 error argv "E:\\Program Files\\nodejs\\node.exe" "E:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--global" "--production" "windows-build-tools" 27 error node v6.11.0 28 error npm v3.10.10 29 error code ENOSYS 30 error errno ENOSYS 31 error syscall kill 32 error kill ENOSYS 33 error If you need help, you may report this error at: 33 error <https://github.com/npm/npm/issues> 34 verbose exit [ 1, true ]
windows下运行npm run dev报错,查了很多资料,哪位大神指点下,感激~
0 info it worked if it ends with ok 1 verbose cli [ 'D:\\nodejs\\node.exe', 1 verbose cli 'D:\\nodejs\\node_global\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'dev' ] 2 info using npm@5.0.0 3 info using node@v8.4.0 4 verbose run-script [ 'predev', 'dev', 'postdev' ] 5 info lifecycle vue_elmentui@1.0.0~predev: vue_elmentui@1.0.0 6 silly lifecycle vue_elmentui@1.0.0~predev: no script for predev, continuing 7 info lifecycle vue_elmentui@1.0.0~dev: vue_elmentui@1.0.0 8 verbose lifecycle vue_elmentui@1.0.0~dev: unsafe-perm in lifecycle true 9 verbose lifecycle vue_elmentui@1.0.0~dev: PATH: D:\nodejs\node_global\node_modules\npm\bin\node-gyp-bin;D:\vueElmentUI\node_modules\.bin;D:\cmder\bin;D:\cmder\vendor\git-for-windows\cmd;D:\cmder\vendor\conemu-maximus5\ConEmu\Scripts;D:\cmder\vendor\conemu-maximus5;D:\cmder\vendor\conemu-maximus5\ConEmu;C:\ProgramData\Oracle\Java\javapath;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:\svn\bin;C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Program Files (x86)\Windows Kits\8.0\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;D:\Git\cmd;D:\java\bin;D:\MongoDB\bin;D:\MongoDB\bin;D:\nodejs\node_global;D:\cmder;D:\nodejs\node_global;D:\nodejs\;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\xw\AppData\Roaming\npm;D:\cmder\vendor\git-for-windows\usr\bin;D:\cmder\vendor\git-for-windows\usr\share\vim\vim74;D:\cmder\ 10 verbose lifecycle vue_elmentui@1.0.0~dev: CWD: D:\vueElmentUI 11 silly lifecycle vue_elmentui@1.0.0~dev: Args: [ '/d /s /c', 'node build/dev-server.js' ] 12 info lifecycle vue_elmentui@1.0.0~dev: Failed to exec dev script 13 verbose stack Error: vue_elmentui@1.0.0 dev: `node build/dev-server.js` 13 verbose stack spawn ;d:\Git\cmd ENOENT 13 verbose stack at _errnoException (util.js:1041:11) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:192:19) 13 verbose stack at onErrorNT (internal/child_process.js:374:16) 13 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11) 13 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9) 14 verbose pkgid vue_elmentui@1.0.0 15 verbose cwd D:\vueElmentUI 16 verbose Windows_NT 6.1.7601 17 verbose argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_global\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev" 18 verbose node v8.4.0 19 verbose npm v5.0.0 20 error file ;d:\Git\cmd 21 error path ;d:\Git\cmd 22 error code ELIFECYCLE 23 error errno ENOENT 24 error syscall spawn ;d:\Git\cmd 25 error vue_elmentui@1.0.0 dev: `node build/dev-server.js` 25 error spawn ;d:\Git\cmd ENOENT 26 error Failed at the vue_elmentui@1.0.0 dev script. 26 error This is probably not a problem with npm. There is likely additional logging output above. 27 verbose exit [ 1, true ]
npm run dev 报错求助啊
C:\Users\lyx\Desktop\eyed\frontend>npm run dev > eyed@1.0.0 dev C:\Users\lyx\Desktop\eyed\frontend > node build/dev-server.js module.js:471 throw err; ^ Error: Cannot find module 'semver' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\Users\lyx\Desktop\eyed\frontend\build\check-versions.js:1:76) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "dev" npm ERR! node v6.10.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! eyed@1.0.0 dev: `node build/dev-server.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the eyed@1.0.0 dev script 'node build/dev-server.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the eyed package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node build/dev-server.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs eyed npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls eyed npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\lyx\Desktop\eyed\frontend\npm-debug.log C:\Users\lyx\Desktop\eyed\frontend>
用npm安装webpack 时出错!
![图片说明](https://img-ask.csdn.net/upload/201704/19/1492578416_370500.png) 0 info it worked if it ends with ok 1 verbose cli [ 'D:\\nodejs\\node.exe', 1 verbose cli 'D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'webpack', 1 verbose cli '-g' ] 2 info using npm@3.10.10 3 info using node@v6.10.2 4 silly loadCurrentTree Starting 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 silly fetchPackageMetaData webpack 8 silly fetchNamedPackageData webpack 9 silly mapToRegistry name webpack 10 silly mapToRegistry using default registry 11 silly mapToRegistry registry https://registry.npmjs.org/ 12 silly mapToRegistry data Result { 12 silly mapToRegistry raw: 'webpack', 12 silly mapToRegistry scope: null, 12 silly mapToRegistry escapedName: 'webpack', 12 silly mapToRegistry name: 'webpack', 12 silly mapToRegistry rawSpec: '', 12 silly mapToRegistry spec: 'latest', 12 silly mapToRegistry type: 'tag' } 13 silly mapToRegistry uri https://registry.npmjs.org/webpack 14 verbose request uri https://registry.npmjs.org/webpack 15 verbose request no auth needed 16 info attempt registry request try #1 at 12:53:45 17 verbose request id 9de94cad0277d3c5 18 http request GET https://registry.npmjs.org/webpack 19 info retry will retry, error on last attempt: Error: unable to verify the first certificate 20 info attempt registry request try #2 at 12:54:01 21 http request GET https://registry.npmjs.org/webpack 22 info retry will retry, error on last attempt: Error: unable to verify the first certificate 23 info attempt registry request try #3 at 12:55:01 24 http request GET https://registry.npmjs.org/webpack 25 silly fetchPackageMetaData Error: unable to verify the first certificate 25 silly fetchPackageMetaData at Error (native) 25 silly fetchPackageMetaData at TLSSocket.<anonymous> (_tls_wrap.js:1092:38) 25 silly fetchPackageMetaData at emitNone (events.js:86:13) 25 silly fetchPackageMetaData at TLSSocket.emit (events.js:185:7) 25 silly fetchPackageMetaData at TLSSocket._finishInit (_tls_wrap.js:610:8) 25 silly fetchPackageMetaData at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38) 25 silly fetchPackageMetaData error for webpack { Error: unable to verify the first certificate 25 silly fetchPackageMetaData at Error (native) 25 silly fetchPackageMetaData at TLSSocket.<anonymous> (_tls_wrap.js:1092:38) 25 silly fetchPackageMetaData at emitNone (events.js:86:13) 25 silly fetchPackageMetaData at TLSSocket.emit (events.js:185:7) 25 silly fetchPackageMetaData at TLSSocket._finishInit (_tls_wrap.js:610:8) 25 silly fetchPackageMetaData at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38) code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE' } 26 silly rollbackFailedOptional Starting 27 silly rollbackFailedOptional Finishing 28 silly runTopLevelLifecycles Finishing 29 silly install printInstalled 30 verbose stack Error: unable to verify the first certificate 30 verbose stack at Error (native) 30 verbose stack at TLSSocket.<anonymous> (_tls_wrap.js:1092:38) 30 verbose stack at emitNone (events.js:86:13) 30 verbose stack at TLSSocket.emit (events.js:185:7) 30 verbose stack at TLSSocket._finishInit (_tls_wrap.js:610:8) 30 verbose stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:440:38) 31 verbose cwd D:\ 32 error Windows_NT 10.0.14393 33 error argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "webpack" "-g" 34 error node v6.10.2 35 error npm v3.10.10 36 error code UNABLE_TO_VERIFY_LEAF_SIGNATURE 37 error unable to verify the first certificate 38 error If you need help, you may report this error at: 38 error <https://github.com/npm/npm/issues> 39 verbose exit [ 1, true ]
npm 出现 fatal error C1083: 无法打开包括文件
\_canvas@1.6.13@canvas\src\canvas.h(19): fatal error C1083: 无法打开包括文件: “cairo.h”: No such file or directory (编译源文件 ..\src\ImageData.cc) 有没有人给支个招啊 \ [21/22] Installing nan@^2.10.0gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Users\xiaojian\AppData\Roaming\npm\node_modules\cnpm\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! command "F:\\Program Files\\nodejs\\node.exe" "C:\\Users\\xiaojian\\AppData\\Roaming\\npm\\node_modules\\cnpm\\node_modules\\npminstall\\node-gyp-bin\\node-gyp.js" "rebuild" gyp ERR! cwd H:\项目\egg\node_modules\_canvas@1.6.13@canvas gyp ERR! node -v v10.11.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok [npminstall:runscript:error] canvas@^1.6.11 has binding.gyp file, run "node-gyp rebuild" error: Error: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1 × Install fail! Error: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1 Error: Run "C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild" error, exit code 1 at ChildProcess.proc.on.code (C:\Users\xiaojian\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:74:21) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) npminstall version: 3.20.1 npminstall args: F:\Program Files\nodejs\node.exe C:\Users\xiaojian\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\xiaojian\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org
NPM错误There is likely additional logging output above.怎么解决
0 info it worked if it ends with ok 1 verbose cli [ 'D:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' ] 2 info using npm@6.9.0 3 info using node@v10.16.3 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle 08cms@1.0.0~prebuild: 08cms@1.0.0 6 info lifecycle 08cms@1.0.0~build: 08cms@1.0.0 7 verbose lifecycle 08cms@1.0.0~build: unsafe-perm in lifecycle true 8 verbose lifecycle 08cms@1.0.0~build: PATH: D:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;c:\av\houses\node_modules\.bin;C:\Program Files (x86)\NetSarang\Xshell 6\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\BINN;d:\Program Files\OpenVPN\bin;D:\py;D:\Program Files\nodejs\;C:\Program Files (x86)\Nmap;C:\Users\Administrator\AppData\Roaming\npm 9 verbose lifecycle 08cms@1.0.0~build: CWD: c:\av\houses 10 silly lifecycle 08cms@1.0.0~build: Args: [ '/d /s /c', 'node build/build.js' ] 11 silly lifecycle 08cms@1.0.0~build: Returned: code: 1 signal: null 12 info lifecycle 08cms@1.0.0~build: Failed to exec build script 13 verbose stack Error: 08cms@1.0.0 build: `node build/build.js` 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess.<anonymous> (D:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid 08cms@1.0.0 15 verbose cwd c:\av\houses 16 verbose Windows_NT 6.1.7601 17 verbose argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" 18 verbose node v10.16.3 19 verbose npm v6.9.0 20 error code ELIFECYCLE 21 error errno 1 22 error 08cms@1.0.0 build: `node build/build.js` 22 error Exit status 1 23 error Failed at the 08cms@1.0.0 build script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]
win7 X64,安装angular-cli报错
各位大神好,npm install -g @angular/cli 时报一个“CL.exe”不存在的错误,在环境变量添加了一下,然后又报了个新错误,求助大神解决。 注:cmd已用管理员用户打开 报错如下: ``` “C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node_modules\nod e-sass\build\binding.sln”(默认目标) (1) -> “C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node_modules\nod e-sass\build\binding.vcxproj.metaproj”(默认目标) (2) -> “C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node_modules\nod e-sass\build\src\libsass.vcxproj”(默认目标) (3) -> (ClCompile 目标) -> cl : 命令行 warning D9024: 无法识别的源文件类型“EnumerateProviders”,假定为 对象文件 [C:\Program Fi les\nodejs\node_global\node_modules\@angular\cli\node_modules\node-sass\build\s rc\libsass.vcxproj] cl : 命令行 warning D9027: 源文件“EnumerateProviders”被忽略 [C:\Program File s\nodejs\n ode_global\node_modules\@angular\cli\node_modules\node-sass\build\src\libsass.v cxproj] cl : 命令行 warning D9024: 无法识别的源文件类型“EnumerateProviders”,假定为 对象文件 [C:\Program Fi les\nodejs\node_global\node_modules\@angular\cli\node_modules\node-sass\build\s rc\libsass.vcxproj] cl : 命令行 warning D9027: 源文件“EnumerateProviders”被忽略 [C:\Program File s\nodejs\n ode_global\node_modules\@angular\cli\node_modules\node-sass\build\src\libsass.v cxproj] cl : 命令行 warning D9024: 无法识别的源文件类型“EnumerateProviders”,假定为 对象文件 [C:\Program Fi les\nodejs\node_global\node_modules\@angular\cli\node_modules\node-sass\build\s rc\libsass.vcxproj] cl : 命令行 warning D9027: 源文件“EnumerateProviders”被忽略 [C:\Program File s\nodejs\n ode_global\node_modules\@angular\cli\node_modules\node-sass\build\src\libsass.v cxproj] “C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node_modules\nod e-sass\build\binding.sln”(默认目标) (1) -> “C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node_modules\nod e-sass\build\binding.vcxproj.metaproj”(默认目标) (2) -> “C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node_modules\nod e-sass\build\src\libsass.vcxproj”(默认目标) (3) -> (ClCompile 目标) -> c1xx : fatal error C1081: “totalPro=18" \GF \Gm- \MT \GS \Gy \fp:precise \Zc: wchar_t \Zc:forScope \Zc:inline \GR- \FoRelease\obj\libsass\ \FdRelease\obj\lib sass\libsass.pdb \Gd \TP \wd4267 \wd4351 \wd4355 \wd4800 \wd4251 \errorReport:q ueue \GR \EHsc \MP ..\..\src\libsass\src\ast.cpp ..\..\src\libsass\src\ast_fwd_ decl.cpp ..\..\src\libsass\src\base64vlq.cpp ..\..\src\libsass\src\bind.cpp ..\ ..\src\libsass\src\check_nesting.cpp ..\..\src\libsass\src\color_maps.cpp ..\.. \src\libsass\src\constants.cpp ..\..\src\libsass\src\context.cpp ..\..\src\libs ass\src\cssize.cpp ..\..\src\libsass\src\emitter.cpp ..\..\src\libsass\src\envi ronment.cpp ..\..\src\libsass\src\error_handling.cpp ..\..\src\libsass\src\eval .cpp ..\..\src\libsass\src\expand.cpp ..\..\src\libsass\src\extend.cpp ..\..\sr c\libsass\src\file.cpp ..\..\src\libsass\src\functions.cpp ..\..\src\libsass\sr c\inspect.cpp ..\..\src\libsass\src\json.cpp ..\..\src\libsass\src\lexer.cpp .. \..\src\libsass\src\listize.cpp ..\..\src\libsass\src\memory\SharedPtr.cpp ..\. .\src\libsass\src\node.cpp ..\..\src\libsass\src\output.cpp ..\..\src\libsass\s rc\parser.cpp ..\..\src\libsass\src\plugins.cpp ..\..\src\libsass\src\position. cpp ..\..\src\libsass\src\prelexer.cpp ..\..\src\libsass\src\remove_placeholder s.cpp ..\..\src\libsass\src\sass.cpp ..\..\src\libsass\src\sass2scss.cpp ..\..\ src\libsass\src\sass_context.cpp ..\..\src\libsass\src\sass_functions.cpp ..\.. \src\libsass\src\sass_util.cpp ..\..\src\libsass\src\sass_values.cpp ..\..\src\ libsass\src\source_map.cpp ..\..\src\libsass\src\subset_map.cpp ..\..\src\libsa ss\src\to_c.cpp ..\..\src\libsass\src\to_value.cpp ..\..\src\libsass\src\units. cpp ..\..\src\libsass\src\utf8_string.cpp ..\..\src\libsass\src\util.cpp ..\..\ src\libsass\src\values.cpp”: 文件名太长 [C:\Program Files\nodejs\node_global\n ode_modules\@angular\cli\node_modules\node-sass\build\src\libsass.vcxproj] 6 个警告 1 个错误 已用时间 00:00:01.01 gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe` fail ed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_global\n ode_modules\@angular\cli\node_modules\node-gyp\lib\build.js:258:23) gyp ERR! stack at emitTwo (events.js:125:13) gyp ERR! stack at ChildProcess.emit (events.js:213:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodej s\\node_global\\node_modules\\@angular\\cli\\node_modules\\node-gyp\\bin\\node-g yp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldf lags=" "--libsass_library=" gyp ERR! cwd C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node_ modules\node-sass gyp ERR! node -v v8.7.0 gyp ERR! node-gyp -v v3.6.2 gyp ERR! not ok Build failed with error code: 1 npm ERR! path C:\Program Files\nodejs\node_global\node_modules\@angular\cli\node _modules\scss-tokenizer\node_modules npm ERR! code EPERM npm ERR! errno -4048 npm ERR! syscall lstat npm ERR! Error: EPERM: operation not permitted, lstat 'C:\Program Files\nodejs\n ode_global\node_modules\@angular\cli\node_modules\scss-tokenizer\node_modules' npm ERR! { Error: EPERM: operation not permitted, lstat 'C:\Program Files\nodej s\node_global\node_modules\@angular\cli\node_modules\scss-tokenizer\node_modules ' npm ERR! stack: 'Error: EPERM: operation not permitted, lstat \'C:\\Program Fi les\\nodejs\\node_global\\node_modules\\@angular\\cli\\node_modules\\scss-tokeni zer\\node_modules\'', npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'lstat', npm ERR! path: 'C:\\Program Files\\nodejs\\node_global\\node_modules\\@angular \\cli\\node_modules\\scss-tokenizer\\node_modules' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! A complete log of this run can be found in: npm ERR! C:\Program Files\nodejs\node_cache\_logs\2017-10-25T01_39_52_411Z-d ebug.log ```
为什么nuxt.js无法安装node-sass?
1.npm 不管怎么样都安装不了 淘宝镜像也没用 2.每次安装后都卡在Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-64这里然后就报错 3.T.T小白求教 ``` PS E:\Users\FuYuHao\Desktop\sb\a\aaa> npm i node-sass > node-sass@4.12.0 install E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass > node scripts/install.js Downloading binary from https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-64_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-64_binding.node": connect ETIMEDOUT 52.216.135.19:443 Timed out whilst downloading the prebuilt binary Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g. export HTTP_PROXY=http://example.com:1234 or configure npm proxy via npm config set proxy http://example.com:8080 > node-sass@4.12.0 postinstall E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass > node scripts/build.js Building: C:\Program Files\nodejs\node.exe E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= gyp info it worked if it ends with ok gyp verb cli [ 'C:\\Program Files\\nodejs\\node.exe', gyp verb cli 'E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-gyp\\bin\\node-gyp.js', gyp verb cli 'rebuild', gyp verb cli '--verbose', gyp verb cli '--libsass_ext=', gyp verb cli '--libsass_cflags=', gyp verb cli '--libsass_ldflags=', gyp verb cli '--libsass_library=' ] gyp info using node-gyp@3.8.0 gyp info using node@10.14.1 | win32 | x64 gyp verb command rebuild [] gyp verb command clean [] gyp verb clean removing "build" directory gyp verb command configure [] gyp verb check python checking for Python executable "python2" in the PATH gyp verb `which` failed Error: not found: python2 gyp verb `which` failed at getNotFoundError (E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:13:12) gyp verb `which` failed at F (E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:68:19) gyp verb `which` failed at E (E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:80:29) gyp verb `which` failed at E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:89:16 gyp verb `which` failed at E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\isexe\index.js:42:5 gyp verb `which` failed at E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21) gyp verb `which` failed python2 { Error: not found: python2 gyp verb `which` failed at getNotFoundError (E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:13:12) gyp verb `which` failed at F (E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:68:19) gyp verb `which` failed at E (E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:80:29) gyp verb `which` failed at E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\which\which.js:89:16 gyp verb `which` failed at E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\isexe\index.js:42:5 gyp verb `which` failed at E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\isexe\windows.js:36:5 gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:154:21) gyp verb `which` failed stack: gyp verb `which` failed 'Error: not found: python2\n at getNotFoundError (E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\which\\which.js:13:12)\n at F (E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\which\\which.js:68:19)\n at E (E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\which\\which.js:80:29)\n at E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\which\\which.js:89:16\n at E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\isexe\\index.js:42:5\n at E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\isexe\\windows.js:36:5\n at FSReqWrap.oncomplete (fs.js:154:21)', gyp verb `which` failed code: 'ENOENT' } gyp verb check python checking for Python executable "python" in the PATH gyp verb `which` succeeded python C:\Python27\python.EXE gyp verb check python version `C:\Python27\python.EXE -c "import sys; print "2.7.15 gyp verb check python version .%s.%s" % sys.version_info[:3];"` returned: %j gyp verb get node dir no --target version specified, falling back to host node version: 10.14.1 gyp verb command install [ '10.14.1' ] gyp verb install input version string "10.14.1" gyp verb install installing version: 10.14.1 gyp verb install --ensure was passed, so won't reinstall if already installed gyp verb install version is already installed, need to check "installVersion" gyp verb got "installVersion" 9 gyp verb needs "installVersion" 9 gyp verb install version is good gyp verb get node dir target node version installed: 10.14.1 gyp verb build dir attempting to create "build" dir: E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build gyp verb build dir "build" dir needed to be created? E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build gyp verb find vs2017 Found installation at: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.Windows10SDK.17763 gyp verb find vs2017 - Found Microsoft.VisualStudio.Component.VC.Tools.x86.x64 gyp verb find vs2017 - Found Microsoft.VisualStudio.VC.MSBuild.Base gyp verb find vs2017 - Using this installation with Windows 10 SDK gyp verb find vs2017 using installation: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools gyp verb build/config.gypi creating config file gyp verb build/config.gypi writing out config file: E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\config.gypi gyp verb config.gypi checking for gypi file: E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\config.gypi gyp verb common.gypi checking for gypi file: E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\common.gypi gyp verb gyp gyp format was not specified; forcing "msvs" gyp info spawn C:\Python27\python.EXE gyp info spawn args [ 'E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-gyp\\gyp\\gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'msvs', gyp info spawn args '-G', gyp info spawn args 'msvs_version=2015', gyp info spawn args '-I', gyp info spawn args 'E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-sass\\build\\config.gypi', gyp info spawn args '-I', gyp info spawn args 'E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-gyp\\addon.gypi', gyp info spawn args '-I', gyp info spawn args 'C:\\Users\\FuYuHao\\.node-gyp\\10.14.1\\include\\node\\common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=C:\\Users\\FuYuHao\\.node-gyp\\10.14.1', gyp info spawn args '-Dnode_gyp_dir=E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-gyp', gyp info spawn args '-Dnode_lib_file=C:\\Users\\FuYuHao\\.node-gyp\\10.14.1\\<(target_arch)\\node.lib', gyp info spawn args '-Dmodule_root_dir=E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-sass', gyp info spawn args '-Dnode_engine=v8', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-sass\\build', gyp info spawn args '-Goutput_dir=.' ] gyp verb command build [] gyp verb build type Release gyp verb architecture x64 gyp verb node dev dir C:\Users\FuYuHao\.node-gyp\10.14.1 gyp verb found first Solution file build/binding.sln gyp verb using MSBuild: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe gyp info spawn C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe gyp info spawn args [ 'build/binding.sln', gyp info spawn args '/nologo', gyp info spawn args '/p:Configuration=Release;Platform=x64' ] 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 生成启动时间为 2019/5/29 22:01:12。 节点 1 上的项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.sln”(默认目标)。 ValidateSolutionConfiguration: 正在生成解决方案配置“Release|x64”。 项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.sln”(1)正在节点 1 上生成“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj.metaproj”(2) (默认目标)。 项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj.metaproj”(2)正在节点 1 上生成“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj”(3) (默认目标)。 PrepareForBuild: 正在创建目录“Release\obj\libsass\”。 正在创建目录“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\Release\”。 正在创建目录“Release\obj\libsass\libsass.tlog\”。 InitializeBuildStatus: 正在创建“Release\obj\libsass\libsass.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。 ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\CL.exe /c /I"C:\Users\FuYuHao\.node-gyp\10.14.1\include\node" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\src" /I"C:\Use rs\FuYuHao\.node-gyp\10.14.1\deps\openssl\config" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\openssl\openssl\include" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\uv\include" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\zli b" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\v8\include" /I..\..\src\libsass\include /Z7 /nologo /W3 /WX- /diagnostics:classic /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=libsass /D USING_UV_SHARED=1 /D USING_ V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D "LIBSASS_VERSION=\"3.5.4\"" /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Z c:inline /GR- /Fo"Release\obj\libsass\\" /Fd"Release\obj\libsass\libsass.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /FC /errorReport:queue /GR /EHsc ..\..\src\libsass\src\ast.cpp ..\..\src\libs ass\src\ast_fwd_decl.cpp ..\..\src\libsass\src\backtrace.cpp ..\..\src\libsass\src\base64vlq.cpp ..\..\src\libsass\src\bind.cpp ..\..\src\libsass\src\check_nesting.cpp ..\..\src\libsass\src\color_maps.cpp ..\..\src\libs ass\src\constants.cpp ..\..\src\libsass\src\context.cpp ..\..\src\libsass\src\cssize.cpp ..\..\src\libsass\src\emitter.cpp ..\..\src\libsass\src\environment.cpp ..\..\src\libsass\src\error_handling.cpp ..\..\src\libsass \src\eval.cpp ..\..\src\libsass\src\expand.cpp ..\..\src\libsass\src\extend.cpp ..\..\src\libsass\src\file.cpp ..\..\src\libsass\src\functions.cpp ..\..\src\libsass\src\inspect.cpp ..\..\src\libsass\src\json.cpp ..\..\s rc\libsass\src\lexer.cpp ..\..\src\libsass\src\listize.cpp ..\..\src\libsass\src\memory\SharedPtr.cpp ..\..\src\libsass\src\node.cpp ..\..\src\libsass\src\operators.cpp ..\..\src\libsass\src\output.cpp ..\..\src\libsass \src\parser.cpp ..\..\src\libsass\src\plugins.cpp ..\..\src\libsass\src\position.cpp ..\..\src\libsass\src\prelexer.cpp ..\..\src\libsass\src\remove_placeholders.cpp ..\..\src\libsass\src\sass.cpp ..\..\src\libsass\src\ sass2scss.cpp ..\..\src\libsass\src\sass_context.cpp ..\..\src\libsass\src\sass_functions.cpp ..\..\src\libsass\src\sass_util.cpp ..\..\src\libsass\src\sass_values.cpp ..\..\src\libsass\src\source_map.cpp ..\..\src\libs ass\src\subset_map.cpp ..\..\src\libsass\src\to_c.cpp ..\..\src\libsass\src\to_value.cpp ..\..\src\libsass\src\units.cpp ..\..\src\libsass\src\utf8_string.cpp ..\..\src\libsass\src\util.cpp ..\..\src\libsass\src\values. cpp cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] ast.cpp cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] ast_fwd_decl.cpp cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] backtrace.cpp cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] base64vlq.cpp bind.cpp check_nesting.cpp color_maps.cpp constants.cpp context.cpp cssize.cpp emitter.cpp environment.cpp error_handling.cpp eval.cpp expand.cpp extend.cpp file.cpp functions.cpp inspect.cpp json.cpp e:\users\fuyuhao\desktop\sb\a\aaa\node_modules\node-sass\src\libsass\src\json.cpp(26): warning C4005: “_CRT_NONSTDC_NO_DEPRECATE”: 宏重定义 [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxp roj] e:\users\fuyuhao\desktop\sb\a\aaa\node_modules\node-sass\src\libsass\src\json.cpp: note: 参见“_CRT_NONSTDC_NO_DEPRECATE”的前一个定义 lexer.cpp listize.cpp SharedPtr.cpp node.cpp operators.cpp output.cpp parser.cpp plugins.cpp position.cpp prelexer.cpp remove_placeholders.cpp sass.cpp sass2scss.cpp e:\users\fuyuhao\desktop\sb\a\aaa\node_modules\node-sass\src\libsass\src\sass2scss.cpp(9): warning C4005: “_CRT_NONSTDC_NO_DEPRECATE”: 宏重定义 [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass. vcxpr oj] e:\users\fuyuhao\desktop\sb\a\aaa\node_modules\node-sass\src\libsass\src\sass2scss.cpp: note: 参见“_CRT_NONSTDC_NO_DEPRECATE”的前一个定义 sass_context.cpp sass_functions.cpp sass_util.cpp sass_values.cpp source_map.cpp subset_map.cpp to_c.cpp to_value.cpp units.cpp utf8_string.cpp util.cpp values.cpp C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\CL.exe /c /I"C:\Users\FuYuHao\.node-gyp\10.14.1\include\node" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\src" /I"C:\Use rs\FuYuHao\.node-gyp\10.14.1\deps\openssl\config" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\openssl\openssl\include" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\uv\include" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\zli b" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\v8\include" /I..\..\src\libsass\include /Z7 /nologo /W3 /WX- /diagnostics:classic /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=libsass /D USING_UV_SHARED=1 /D USING_ V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D "LIBSASS_VERSION=\"3.5.4\"" /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Z c:inline /GR- /Fo"Release\obj\libsass\\" /Fd"Release\obj\libsass\libsass.pdb" /Gd /TC /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /FC /errorReport:queue /GR /EHsc ..\..\src\libsass\src\cencode.c cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] cencode.c Lib: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\Lib.exe /OUT:"E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\Release\libsass.lib" /NOLOGO /MACHINE :X64 /LTCG:INCREMENTAL Release\obj\libsass\ast.obj Release\obj\libsass\ast_fwd_decl.obj Release\obj\libsass\backtrace.obj Release\obj\libsass\base64vlq.obj Release\obj\libsass\bind.obj Release\obj\libsass\cencode.obj Release\obj\libsass\check_nesting.obj Release\obj\libsass\color_maps.obj Release\obj\libsass\constants.obj Release\obj\libsass\context.obj Release\obj\libsass\cssize.obj Release\obj\libsass\emitter.obj Release\obj\libsass\environment.obj Release\obj\libsass\error_handling.obj Release\obj\libsass\eval.obj Release\obj\libsass\expand.obj Release\obj\libsass\extend.obj Release\obj\libsass\file.obj Release\obj\libsass\functions.obj Release\obj\libsass\inspect.obj Release\obj\libsass\json.obj Release\obj\libsass\lexer.obj Release\obj\libsass\listize.obj Release\obj\libsass\SharedPtr.obj Release\obj\libsass\node.obj Release\obj\libsass\operators.obj Release\obj\libsass\output.obj Release\obj\libsass\parser.obj Release\obj\libsass\plugins.obj Release\obj\libsass\position.obj Release\obj\libsass\prelexer.obj Release\obj\libsass\remove_placeholders.obj Release\obj\libsass\sass.obj Release\obj\libsass\sass2scss.obj Release\obj\libsass\sass_context.obj Release\obj\libsass\sass_functions.obj Release\obj\libsass\sass_util.obj Release\obj\libsass\sass_values.obj Release\obj\libsass\source_map.obj Release\obj\libsass\subset_map.obj Release\obj\libsass\to_c.obj Release\obj\libsass\to_value.obj Release\obj\libsass\units.obj Release\obj\libsass\utf8_string.obj Release\obj\libsass\util.obj Release\obj\libsass\values.obj libsass.vcxproj -> E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\Release\\libsass.lib FinalizeBuildStatus: 正在删除文件“Release\obj\libsass\libsass.tlog\unsuccessfulbuild”。 正在对“Release\obj\libsass\libsass.tlog\libsass.lastbuildstate”执行 Touch 任务。 已完成生成项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj”(默认目标)的操作。 项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj.metaproj”(2)正在节点 1 上生成“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj”(4) (默认目标)。 PrepareForBuild: 正在创建目录“Release\obj\binding\”。 正在创建目录“Release\obj\binding\binding.tlog\”。 InitializeBuildStatus: 正在创建“Release\obj\binding\binding.tlog\unsuccessfulbuild”,因为已指定“AlwaysCreate”。 ClCompile: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\CL.exe /c /I"C:\Users\FuYuHao\.node-gyp\10.14.1\include\node" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\src" /I"C:\Use rs\FuYuHao\.node-gyp\10.14.1\deps\openssl\config" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\openssl\openssl\include" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\uv\include" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\zli b" /I"C:\Users\FuYuHao\.node-gyp\10.14.1\deps\v8\include" /I..\..\nan /I..\src\libsass\include /Z7 /nologo /W3 /WX- /diagnostics:classic /MP /Ox /Ob2 /Oi /Ot /Oy /GL /D NODE_GYP_MODULE_NAME=binding /D USING_UV_SHARED=1 /D USING_V8_SHARED=1 /D V8_DEPRECATION_WARNINGS=1 /D WIN32 /D _CRT_SECURE_NO_DEPRECATE /D _CRT_NONSTDC_NO_DEPRECATE /D _HAS_EXCEPTIONS=0 /D BUILDING_NODE_EXTENSION /D _WINDLL /GF /Gm- /MT /GS /Gy /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR- /Fo"Release\obj\binding\\" /Fd"Release\obj\binding\vc141.pdb" /Gd /TP /wd4351 /wd4355 /wd4800 /wd4251 /wd4275 /wd4244 /wd4267 /FC /errorReport:queue /Zc:threadSafeInit- ..\src\binding.cpp . .\src\create_string.cpp ..\src\custom_function_bridge.cpp ..\src\custom_importer_bridge.cpp ..\src\sass_context_wrapper.cpp ..\src\sass_types\boolean.cpp ..\src\sass_types\color.cpp ..\src\sass_types\error.cpp ..\src\sa ss_types\factory.cpp ..\src\sass_types\list.cpp ..\src\sass_types\map.cpp ..\src\sass_types\null.cpp ..\src\sass_types\number.cpp ..\src\sass_types\string.cpp "E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-gyp\src \win_delay_load_hook.cc" binding.cpp create_string.cpp custom_function_bridge.cpp custom_importer_bridge.cpp sass_context_wrapper.cpp boolean.cpp color.cpp error.cpp factory.cpp list.cpp map.cpp null.cpp number.cpp string.cpp win_delay_load_hook.cc Link: C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\Release\binding.n ode" /INCREMENTAL:NO /NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib DelayImp.lib "C:\Users\FuYuHao\.node-gyp\10.14.1\x64\node.lib" Delayimp.lib /DELAYLOAD:iojs.exe /DELAYLOAD:node.exe /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG /PDB:"E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\Release\bindi ng.pdb" /MAP /MAPINFO:EXPORTS /OPT:REF /OPT:ICF /TLBID:1 /RELEASE /DYNAMICBASE /NXCOMPAT /MACHINE:X64 /ignore:4199 /LTCG:INCREMENTAL /DLL Release\obj\binding\binding.obj Release\obj\binding\create_string.obj Release\obj\binding\custom_function_bridge.obj Release\obj\binding\custom_importer_bridge.obj Release\obj\binding\sass_context_wrapper.obj Release\obj\binding\boolean.obj Release\obj\binding\color.obj Release\obj\binding\error.obj Release\obj\binding\factory.obj Release\obj\binding\list.obj Release\obj\binding\map.obj Release\obj\binding\null.obj Release\obj\binding\number.obj Release\obj\binding\string.obj Release\obj\binding\win_delay_load_hook.obj "E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\Release\libsass.lib" C:\Users\FuYuHao\.node-gyp\10.14.1\x64\node.lib : fatal error LNK1107: 文件无效或损坏: 无法在 0x39F993 处读取 [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj] 已完成生成项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj”(默认目标)的操作 - 失败。 已完成生成项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj.metaproj”(默认目标)的操作 - 失败。 已完成生成项目“E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.sln”(默认目标)的操作 - 失败。 生成失败。 “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.sln”(默认目标) (1) -> “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) -> “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj”(默认目标) (3) -> (ClCompile 目标) -> cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] e:\users\fuyuhao\desktop\sb\a\aaa\node_modules\node-sass\src\libsass\src\json.cpp(26): warning C4005: “_CRT_NONSTDC_NO_DEPRECATE”: 宏重定义 [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vc xproj ] e:\users\fuyuhao\desktop\sb\a\aaa\node_modules\node-sass\src\libsass\src\sass2scss.cpp(9): warning C4005: “_CRT_NONSTDC_NO_DEPRECATE”: 宏重定义 [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsas s.vcx proj] “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.sln”(默认目标) (1) -> “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) -> “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj”(默认目标) (3) -> cl : 命令行 warning D9025: 正在重写“/GR-”(用“/GR”) [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\src\libsass.vcxproj] “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.sln”(默认目标) (1) -> “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj.metaproj”(默认目标) (2) -> “E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj”(默认目标) (4) -> (Link 目标) -> C:\Users\FuYuHao\.node-gyp\10.14.1\x64\node.lib : fatal error LNK1107: 文件无效或损坏: 无法在 0x39F993 处读取 [E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass\build\binding.vcxproj] 8 个警告 1 个错误 已用时间 00:00:24.13 gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-gyp\lib\build.js:262:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12) gyp ERR! System Windows_NT 10.0.17763 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "E:\\Users\\FuYuHao\\Desktop\\sb\\a\\aaa\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd E:\Users\FuYuHao\Desktop\sb\a\aaa\node_modules\node-sass gyp ERR! node -v v10.14.1 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok Build failed with error code: 1 npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\watchpack\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules\nodemon\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.12.0 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.12.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! C:\Users\FuYuHao\AppData\Roaming\npm-cache\_logs\2019-05-29T14_01_39_903Z-debug.log PS E:\Users\FuYuHao\Desktop\sb\a\aaa> ```
Rap2页面运行失败,Rap2-dolores本地运行报错了
npm run dev运行rap2-dolores,访问页面出现以下错误: ``` Wrote 38 CSS files to D:\WorkSpace\Rap2\rap2-dolores\build\ Starting the development server... Failed to compile. ./src/components/organization/OrganizationRepositoryList.tsx Module not found: Can't resolve '../repository/Repository.css' in 'D:\WorkSpace\Rap2\rap2-dolores\src\components\organization' ``` npm install 没报错,npm build也会报错,下面是npm build的日志文件: ``` 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' ] 2 info using npm@6.4.1 3 info using node@v10.15.3 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle rap2-dolores@1.0.0~prebuild: rap2-dolores@1.0.0 6 info lifecycle rap2-dolores@1.0.0~build: rap2-dolores@1.0.0 7 verbose lifecycle rap2-dolores@1.0.0~build: unsafe-perm in lifecycle true 8 verbose lifecycle rap2-dolores@1.0.0~build: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\WorkSpace\Rap2\rap2-dolores\node_modules\.bin;D:\WorkSpace\Rap2\rap2-dolores\node_modules\.bin;D:\Matlab\bin;D:\Matlab\bin\win64;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\;C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Java\jdk1.8.0_91\bin;C:\Program Files\TortoiseGit\bin;C:\Program Files\nodejs\;D:\Matlab\bin\win64;D:\matlab\runtime\win64;D:\matlab\bin;D:\oKit\apache\bin\;C:\Users\admin\AppData\Local\Microsoft\WindowsApps;C:\Users\admin\AppData\Roaming\npm 9 verbose lifecycle rap2-dolores@1.0.0~build: CWD: D:\WorkSpace\Rap2\rap2-dolores 10 silly lifecycle rap2-dolores@1.0.0~build: Args: [ '/d /s /c', 10 silly lifecycle 'npm run lint && npm run build-css && react-scripts build' ] 11 silly lifecycle rap2-dolores@1.0.0~build: Returned: code: 1 signal: null 12 info lifecycle rap2-dolores@1.0.0~build: Failed to exec build script 13 verbose stack Error: rap2-dolores@1.0.0 build: `npm run lint && npm run build-css && react-scripts build` 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:301:16) 13 verbose stack at EventEmitter.emit (events.js:189:13) 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:189:13) 13 verbose stack at maybeClose (internal/child_process.js:970:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid rap2-dolores@1.0.0 15 verbose cwd D:\WorkSpace\Rap2\rap2-dolores 16 verbose Windows_NT 10.0.17134 17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" 18 verbose node v10.15.3 19 verbose npm v6.4.1 20 error code ELIFECYCLE 21 error errno 1 22 error rap2-dolores@1.0.0 build: `npm run lint && npm run build-css && react-scripts build` 22 error Exit status 1 23 error Failed at the rap2-dolores@1.0.0 build script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ] ```
npm ERR! Buffer.alloc is not a function
0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\XJ\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install' ] 2 info using npm@5.4.1 3 info using node@v4.4.3 4 verbose stack TypeError: Buffer.alloc is not a function 4 verbose stack at Object.<anonymous> (C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\pack.js:32:20) 4 verbose stack at Module._compile (module.js:409:26) 4 verbose stack at Object.Module._extensions..js (module.js:416:10) 4 verbose stack at Module.load (module.js:343:32) 4 verbose stack at Function.Module._load (module.js:300:12) 4 verbose stack at Module.require (module.js:353:17) 4 verbose stack at require (internal/module.js:12:17) 4 verbose stack at Object.<anonymous> (C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\node_modules\tar\lib\create.js:6:14) 4 verbose stack at Module._compile (module.js:409:26) 4 verbose stack at Object.Module._extensions..js (module.js:416:10) 4 verbose stack at Module.load (module.js:343:32) 4 verbose stack at Function.Module._load (module.js:300:12) 4 verbose stack at Module.require (module.js:353:17) 4 verbose stack at require (internal/module.js:12:17) 4 verbose stack at Object.<anonymous> (C:\Users\XJ\AppData\Roaming\npm\node_modules\npm\node_modules\tar\index.js:4:30) 4 verbose stack at Module._compile (module.js:409:26) 5 verbose cwd E:\vue-devtools-master\vue-devtools-master 6 verbose Windows_NT 6.1.7601 7 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\XJ\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" 8 verbose node v4.4.3 9 verbose npm v5.4.1 10 error Buffer.alloc is not a function 11 verbose exit [ 1, true ] 这是对应的log日志 新手,这个问题怎么解决啊....
npm ETIMEDOUT nodej安装第三方模块老是报错
C:\Users\v_xbingtan>npm install -g xml2js npm ERR! code ETIMEDOUT npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.npm.taobao.org/xml2js failed, reason: connect ETIMEDOU npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\v_xbingtan\AppData\Roaming\npm-cache\_logs\2017-09-01T02_41_59_830Z-debug.log 那些什么更换registry ,设置代理为null等都试过了,还是这样。到底是什么原因,如何去解决呢 日志里看不出什么 来,以下是日志文件: 0 info it worked if it ends with ok 1 verbose cli [ 'F:\\develop\\nodejs\\node.exe', 1 verbose cli 'F:\\develop\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli 'xml2js' ] 2 info using npm@5.3.0 3 info using node@v8.4.0 4 verbose npm-session 2e9c8d90d22e4948 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 silly fetchPackageMetaData error for xml2js@latest request to https://registry.npm.taobao.org/xml2js failed, reason: connect ETIMEDOUT 114.55.80.225:443 8 verbose type system 9 verbose stack FetchError: request to https://registry.npm.taobao.org/xml2js failed, reason: connect ETIMEDOUT 114.55.80.225:443 9 verbose stack at ClientRequest.req.on.err (F:\develop\nodejs\node_modules\npm\node_modules\pacote\node_modules\make-fetch-happen\node_modules\node-fetch-npm\src\index.js:68:14) 9 verbose stack at emitOne (events.js:115:13) 9 verbose stack at ClientRequest.emit (events.js:210:7) 9 verbose stack at TLSSocket.socketErrorListener (_http_client.js:401:9) 9 verbose stack at emitOne (events.js:115:13) 9 verbose stack at TLSSocket.emit (events.js:210:7) 9 verbose stack at emitErrorNT (internal/streams/destroy.js:64:8) 9 verbose stack at _combinedTickCallback (internal/process/next_tick.js:138:11) 9 verbose stack at process._tickCallback (internal/process/next_tick.js:180:9) 10 verbose cwd C:\Users\v_xbingtan 11 verbose Windows_NT 6.1.7601 12 verbose argv "F:\\develop\\nodejs\\node.exe" "F:\\develop\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "xml2js" 13 verbose node v8.4.0 14 verbose npm v5.3.0 15 error code ETIMEDOUT 16 error errno ETIMEDOUT 17 error network request to https://registry.npm.taobao.org/xml2js failed, reason: connect ETIMEDOUT 114.55.80.225:443 18 error network This is a problem related to network connectivity. 18 error network In most cases you are behind a proxy or have bad network settings. 18 error network 18 error network If you are behind a proxy, please make sure that the 18 error network 'proxy' config is set properly. See: 'npm help config' 19 verbose exit [ 1, true ]
关于zookeeper启动报虚拟机溢出问题
今天在启动zookeeper的时候突然报下面这个错误,不知道怎么解决了,有知道怎么解决的吗 ? # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005fb52ec3, pid=1348, tid=4676 # # JRE version: (9.0+11) (build ) # Java VM: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11, mixed mode, tiered, compressed oops, g1 gc, windows-amd64) # Problematic frame: # V [jvm.dll+0x1b2ec3] # # No core dump will be written. Minidumps are not enabled by default on client versions of Windows # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # --------------- S U M M A R Y ------------ Command Line: -Dzookeeper.log.dir=D:\zookeeper\bin\.. -Dzookeeper.root.logger=INFO,CONSOLE org.apache.zookeeper.server.quorum.QuorumPeerMain D:\zookeeper\bin\..\conf\zoo.cfg Host: Intel(R) Core(TM) i5-3230M CPU @ 2.60GHz, 4 cores, 7G, Windows 8.1 , 64 bit Build 9600 (6.3.9600.17415) Time: Tue Nov 07 17:12:55 2017 ?D1ú±ê×?ê±?? elapsed time: 0 seconds (0d 0h 0m 0s) --------------- T H R E A D --------------- Current thread (0x0000002701f51800): JavaThread "Unknown thread" [_thread_in_vm, id=4676, stack(0x0000002703a20000,0x0000002703b20000)] Stack: [0x0000002703a20000,0x0000002703b20000], sp=0x0000002703b1f520, free space=1021k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x0000000000000000 Registers: RAX=0x0000000000000001, RBX=0x0000000000000000, RCX=0x0000000000000000, RDX=0x0000002701f3fb01 RSP=0x0000002703b1f520, RBP=0x0000000000000000, RSI=0x0000002703b1f958, RDI=0x0000002701f51800 R8 =0x0000000000000000, R9 =0x0000000000000007, R10=0x0000000000000006, R11=0x0000002703b1ee50 R12=0x000000005fedf800, R13=0x0000002701f2f0f0, R14=0x0000002701f39408, R15=0x0000000000000000 RIP=0x000000005fb52ec3, EFLAGS=0x0000000000010256 Top of Stack: (sp=0x0000002703b1f520) 0x0000002703b1f520: 0000002701f5cc00 000000005ff4d9c3 0x0000002703b1f530: 0000000000000038 000000005ff018cd 0x0000002703b1f540: 0000000060179708 0000000060117d60 0x0000002703b1f550: 0000000000000140 0000002703b1f5b0 0x0000002703b1f560: 0000002701f51800 000000005ff01c25 0x0000002703b1f570: 0000002701f50960 0000000000000000 0x0000002703b1f580: 0000000000000000 000000005ff01607 0x0000002703b1f590: 0000000000000000 000000005ff4d7b9 0x0000002703b1f5a0: 0000000e07618c6a 000000005f9a0000 0x0000002703b1f5b0: 0000002701f5cc00 0000000000000000 0x0000002703b1f5c0: 0000000000000004 0000a717b1e0ffbe 0x0000002703b1f5d0: 0000000000000000 000000005fb52a75 0x0000002703b1f5e0: 0000000000000004 0000000000000000 0x0000002703b1f5f0: 0000002701f2f0f0 0000002703b1f958 0x0000002703b1f600: 0000002703b1f640 000000005fb50e21 0x0000002703b1f610: 0000000000000000 0000002703b1f640 Instructions: (pc=0x000000005fb52ec3) 0x000000005fb52ea3: 48 33 c4 48 89 84 24 a8 00 00 00 0f b6 c2 88 54 0x000000005fb52eb3: 24 31 48 8b e9 49 83 c8 ff 0f 1f 40 00 49 ff c0 0x000000005fb52ec3: 41 80 3c 08 00 75 f6 33 f6 45 33 ed 88 44 24 30 0x000000005fb52ed3: 45 85 c0 0f 8e 78 02 00 00 8b 0d 62 01 7e 00 65 --------------- P R O C E S S --------------- Java Threads: ( => current thread ) Other Threads: [error occurred during error reporting (printing all threads), id 0xc0000005] VM state:not at safepoint (not fully initialized) VM Mutex/Monitor currently owned by a thread: None [error occurred during error reporting (printing compressed oops mode), id 0xc0000005] Deoptimization events (0 events): No events Classes redefined (0 events): No events Internal exceptions (0 events): No events Events (0 events): No events Dynamic libraries: 0x00007ff7ab210000 - 0x00007ff7ab24e000 C:\ProgramData\Oracle\Java\javapath\java.exe 0x00007ff85b840000 - 0x00007ff85b9ed000 C:\Windows\SYSTEM32\ntdll.dll 0x00007ff859bb0000 - 0x00007ff859cee000 C:\Windows\system32\KERNEL32.DLL 0x00007ff858b50000 - 0x00007ff858c65000 C:\Windows\system32\KERNELBASE.dll 0x00007ff859150000 - 0x00007ff8591fa000 C:\Windows\system32\ADVAPI32.dll 0x00007ff859810000 - 0x00007ff859987000 C:\Windows\system32\USER32.dll 0x00007ff8565b0000 - 0x00007ff85682b000 C:\Windows\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_6.0.9600.18006_none_623f33d3ecbe86e8\COMCTL32.dll 0x00007ff857f10000 - 0x00007ff857f1a000 C:\Windows\SYSTEM32\VERSION.dll 0x00007ff859260000 - 0x00007ff85930a000 C:\Windows\system32\msvcrt.dll 0x00007ff858ed0000 - 0x00007ff858f29000 C:\Windows\SYSTEM32\sechost.dll 0x00007ff85b440000 - 0x00007ff85b580000 C:\Windows\system32\RPCRT4.dll 0x00007ff859000000 - 0x00007ff85914b000 C:\Windows\system32\GDI32.dll 0x00007ff858ea0000 - 0x00007ff858ece000 C:\Windows\system32\SspiCli.dll 0x00007ff859520000 - 0x00007ff859556000 C:\Windows\system32\IMM32.DLL 0x00007ff8596b0000 - 0x00007ff859801000 C:\Windows\system32\MSCTF.dll 0x00007ff842050000 - 0x00007ff84213f000 D:\Code\Java\jre\bin\msvcr120.dll 0x00007ff841ea0000 - 0x00007ff841f46000 D:\Code\Java\jre\bin\msvcp120.dll 0x000000005f9a0000 - 0x00000000603c4000 D:\Code\Java\jre\bin\server\jvm.dll 0x00007ff856840000 - 0x00007ff856849000 C:\Windows\SYSTEM32\WSOCK32.dll 0x00007ff852960000 - 0x00007ff852982000 C:\Windows\SYSTEM32\WINMM.dll 0x00007ff85b580000 - 0x00007ff85b587000 C:\Windows\system32\PSAPI.DLL 0x00007ff859320000 - 0x00007ff85937a000 C:\Windows\system32\WS2_32.dll 0x00007ff851c10000 - 0x00007ff851c3a000 C:\Windows\SYSTEM32\WINMMBASE.dll 0x00007ff859580000 - 0x00007ff859589000 C:\Windows\system32\NSI.dll 0x00007ff858c70000 - 0x00007ff858cbf000 C:\Windows\SYSTEM32\cfgmgr32.dll 0x00007ff8573d0000 - 0x00007ff8573f8000 C:\Windows\SYSTEM32\DEVOBJ.dll 0x00007ff8543e0000 - 0x00007ff8543ef000 D:\Code\Java\jre\bin\verify.dll 0x00007ff8442e0000 - 0x00007ff844307000 D:\Code\Java\jre\bin\java.dll 0x00007ff8488b0000 - 0x00007ff8488c6000 D:\Code\Java\jre\bin\zip.dll 0x00007ff854250000 - 0x00007ff85425a000 D:\Code\Java\jre\bin\jimage.dll 0x00007ff84e9e0000 - 0x00007ff84eb69000 C:\Windows\SYSTEM32\dbghelp.dll VM Arguments: jvm_args: -Dzookeeper.log.dir=D:\zookeeper\bin\.. -Dzookeeper.root.logger=INFO,CONSOLE java_command: org.apache.zookeeper.server.quorum.QuorumPeerMain D:\zookeeper\bin\..\conf\zoo.cfg java_class_path (initial): D:\zookeeper\bin\..\build\classes;D:\zookeeper\bin\..\build\lib\*;D:\zookeeper\bin\..\zookeeper-3.3.6.jar;D:\zookeeper\bin\..\lib\jline-0.9.94.jar;D:\zookeeper\bin\..\lib\log4j-1.2.15.jar;D:\zookeeper\bin\..\conf Launcher Type: SUN_STANDARD Logging: Log output configuration: #0: stdout all=warning uptime,level,tags #1: stderr all=off uptime,level,tags Environment Variables: JAVA_HOME=D:\Code\Java JRE_HOME=D:\Code\Java\jre CLASSPATH=D:\zookeeper\bin\..\build\classes;D:\zookeeper\bin\..\build\lib\*;D:\zookeeper\bin\..\*;D:\zookeeper\bin\..\lib\*;D:\zookeeper\bin\..\conf PATH=C:\ProgramData\Oracle\Java\javapath;D:\Code\Java\bin;D:\Code\Java\jre;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;;D:\Code\OracleClient\bin;C:\TDM-GCC-64\bin;D:\Code\MySQL\bin;D:\maven\apache-maven-3.3.9\bin;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files (x86)\AMD\ATI.ACE\Core-Static;D:\Code\gradle-3.4\bin;;D:\zookeeper/bin; D:\zookeeper/conf;D:\Code\nodejs\;D:\Code\nodejs\;D:\Code\nodejs\node_global\node_modules\hexo\bin;D:\Code\Java\bin;D:\Code\Java\jre\bin;D:\Code\Python\Scripts\;D:\Code\Python\;C:\Users\tianlinpc\AppData\Local\atom\bin;D:\Program Files\mongodb\bin;D:\Code\Microsoft VS Code\bin;D:\Program Files\Git\bin;D:\Code\gradle-3.4\bin;;D:\zookeeper/bin; D:\zookeeper/conf;D:\Code\nodejs\;C:\Users\tianlinpc\AppData\Roaming\npm;D:\Code\nodejs\node_global\node_modules\hexo\bin;D:\Code\Java\bin;D:\Code\Java\jre\bin USERNAME=tianlinpc OS=Windows_NT PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel --------------- S Y S T E M --------------- OS: Windows 8.1 , 64 bit Build 9600 (6.3.9600.17415) CPU:total 4 (initial active 4) Memory: 4k page, physical 8281448k(5748736k free), swap 13000040k(7724396k free) vm_info: Java HotSpot(TM) 64-Bit Server VM (9.0.1+11) for windows-amd64 JRE (9.0.1+11), built on Sep 28 2017 04:54:03 by "mach5one" with MS VC++ 12.0 (VS2013) END.
npm安装依赖包报128错误
![控制台报错](https://img-ask.csdn.net/upload/201706/20/1497951759_836689.png) 日志: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Users\\qinwy\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli '--save' ] 2 info using npm@5.0.3 3 info using node@v6.11.0 4 verbose npm-session 74296ddf7f070f99 5 silly install runPreinstallTopLevelLifecycles 6 silly preinstall app@1.0.0 7 info lifecycle app@1.0.0~preinstall: app@1.0.0 8 silly lifecycle app@1.0.0~preinstall: no script for preinstall, continuing 9 silly install loadCurrentTree 10 silly install readLocalPackageData 11 silly install loadIdealTree 12 silly install cloneCurrentTreeToIdealTree 13 silly install loadShrinkwrap 14 silly pacote trying https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz by hash: sha512-Sn44E5wQW4bTHXvQmvSHwqbuiXtduD6Rrjm2ZtUEGbyrig+nUH3t/QD4M4/ZXViY556TBpRgZkHLDx3JxPwxiw== 15 silly pacote https://registry.npmjs.org/fsevents/-/fsevents-1.1.2.tgz extracted to C:\Users\qinwy\AppData\Local\Temp\npm-5380-30980156\unpack-f8d560a0 by content address 2509ms 16 silly addBundled read tarball 17 silly cleanup remove extracted module 18 http fetch GET 304 http://registry.npm.taobao.org/jspdf/download/jspdf-1.3.3.tgz 327ms (from cache) 19 silly pacote remote manifest for jspdf@http://registry.npm.taobao.org/jspdf/download/jspdf-1.3.3.tgz fetched in 384ms 20 silly fetchPackageMetaData error for adler32cs@git+https://github.com/chick307/adler32cs.js.git#master exited with error code: 128 21 verbose stack Error: exited with error code: 128 21 verbose stack at ChildProcess.onexit (C:\Users\qinwy\AppData\Roaming\npm\node_modules\npm\node_modules\mississippi\node_modules\end-of-stream\index.js:39:36) 21 verbose stack at emitTwo (events.js:106:13) 21 verbose stack at ChildProcess.emit (events.js:191:7) 21 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 22 verbose cwd F:\works\kudai_person\app 23 verbose Windows_NT 10.0.14393 24 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\qinwy\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" 25 verbose node v6.11.0 26 verbose npm v5.0.3 27 error exited with error code: 128 28 verbose exit [ 1, true ]
NPM 下包的时候报错了,高手帮我看看,谢谢
C:\Users>npm install -g ionic npm ERR! registry error parsing json npm ERR! SyntaxError: Unexpected token < npm ERR! npm ERR! <html><head> npm ERR! <meta http-equiv="content-type" content="text/html;charset=utf-8"> npm ERR! <title>404 Not Found</title> npm ERR! </head> npm ERR! <body text=#000000 bgcolor=#ffffff> npm ERR! <h1>Error: Not Found</h1> npm ERR! <h2>The requested URL <code>/_gh/</code> was not found on this ser npm ERR! <h2></h2> npm ERR! </body></html> npm ERR! npm ERR! at Object.parse (native) npm ERR! at RegClient.<anonymous> (D:\program file\nodejs\node_modules\ est.js:274:23) npm ERR! at Request._callback (D:\program file\nodejs\node_modules\npm\ js:246:65) npm ERR! at Request.self.callback (D:\program file\nodejs\node_modules\ npm ERR! at Request.emit (events.js:98:17) npm ERR! at Request.<anonymous> (D:\program file\nodejs\node_modules\np npm ERR! at Request.emit (events.js:117:20) npm ERR! at IncomingMessage.<anonymous> (D:\program file\nodejs\node_mo 6:12) npm ERR! at IncomingMessage.emit (events.js:117:20) npm ERR! at _stream_readable.js:944:16 npm ERR! If you need help, you may report this *entire* log, npm ERR! including the npm and node versions, at: npm ERR! <http://github.com/npm/npm/issues> npm ERR! System Windows_NT 6.2.9200 npm ERR! command "D:\\program file\\nodejs\\\\node.exe" "D:\\program file\\ install" "-g" "ionic" npm ERR! cwd C:\Users\lvyinxi npm ERR! node -v v0.10.35 npm ERR! npm -v 1.4.28 npm ERR! type unexpected_token npm ERR! npm ERR! Additional logging details can be found in: npm ERR! C:\Users\lvyinxi\npm-debug.log npm ERR! not ok code 0
npm时总是报错,不能Install东西,请问这是怎么了?
F:\nodework\demo\day5>npm install ejs npm ERR! fetch failed http://r.cnpmjs.org/ejs/download/ejs-2.5.6.tgz npm WARN retry will retry, error on last attempt: Error: unable to verify the first certificate npm ERR! fetch failed http://r.cnpmjs.org/ejs/download/ejs-2.5.6.tgz npm WARN retry will retry, error on last attempt: Error: unable to verify the first certificate npm ERR! fetch failed http://r.cnpmjs.org/ejs/download/ejs-2.5.6.tgz npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "ejs" npm ERR! node v6.11.0 npm ERR! npm v3.10.10 npm ERR! code UNABLE_TO_VERIFY_LEAF_SIGNATURE npm ERR! unable to verify the first certificate npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! F:\nodework\demo\day5\npm-debug.log
npm安装@vue/cli失败,提示仅支持https
之前装过这些,但因为别的原因,把AppData下相关文件和用户的注册文件删了重装,结果这次安装失败。 先是卡在**fetchmetadata:sill resolvewithnewmodule typescript**不动,然后取消了两次后, 配置了阿里镜像:npm config set registry https://registry.npm.taobao.org,然后再执行就报错误,说仅支持https。 这是dos界面提示 ![图片说明](https://img-ask.csdn.net/upload/201909/20/1568914845_998077.png) cnpm模块的package.json文件: ![图片说明](https://img-ask.csdn.net/upload/201909/20/1568915208_526334.png) debug文件: ``` 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'D:\\work softs\\web_html\\nodejs\\node.exe', 1 verbose cli 'D:\\work softs\\web_html\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli '@vue/cli', 1 verbose cli '-g' 1 verbose cli ] 2 info using npm@6.10.3 3 info using node@v12.10.0 4 verbose npm-session 599580d47326bd14 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 silly fetchPackageMetaData error for @vue/cli@latest Only HTTP(S) protocols are supported 8 timing stage:rollbackFailedOptional Completed in 1ms 9 timing stage:runTopLevelLifecycles Completed in 27ms 10 verbose stack TypeError: Only HTTP(S) protocols are supported 10 verbose stack at getNodeRequestOptions (D:\work softs\web_html\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\request.js:135:11) 10 verbose stack at D:\work softs\web_html\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:44:21 10 verbose stack at new Promise (<anonymous>) 10 verbose stack at fetch (D:\work softs\web_html\nodejs\node_modules\npm\node_modules\node-fetch-npm\src\index.js:41:10) 10 verbose stack at D:\work softs\web_html\nodejs\node_modules\npm\node_modules\make-fetch-happen\index.js:332:14 10 verbose stack at D:\work softs\web_html\nodejs\node_modules\npm\node_modules\promise-retry\index.js:29:24 11 verbose cwd C:\Users\86180 12 verbose Windows_NT 10.0.18362 13 verbose argv "D:\\work softs\\web_html\\nodejs\\node.exe" "D:\\work softs\\web_html\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "@vue/cli" "-g" 14 verbose node v12.10.0 15 verbose npm v6.10.3 16 error Only HTTP(S) protocols are supported 17 verbose exit [ 1, true ] ```
npm run build 时出错
https://github.com/greggman/webgl-fundamentals 在git下载了这个项目,想要在本地运行,结果在执行 npm run build 时出错。请大佬帮忙看一下。 **控制台:** ``` Running "buildlessons" task Warning: requires at least node: 11 Use --force to continue. Aborted due to warnings. npm ERR! code ELIFECYCLE npm ERR! errno 3 npm ERR! webgl-fundamentals@0.0.0 build: `grunt` npm ERR! Exit status 3 npm ERR! npm ERR! Failed at the webgl-fundamentals@0.0.0 build 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! C:\Users\56386\AppData\Roaming\npm-cache\_logs\2019-04-26T02_09_33_735Z-debug.log ``` **日志:** ``` 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' ] 2 info using npm@6.4.1 3 info using node@v10.15.3 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle webgl-fundamentals@0.0.0~prebuild: webgl-fundamentals@0.0.0 6 info lifecycle webgl-fundamentals@0.0.0~build: webgl-fundamentals@0.0.0 7 verbose lifecycle webgl-fundamentals@0.0.0~build: unsafe-perm in lifecycle true 8 verbose lifecycle webgl-fundamentals@0.0.0~build: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\WorkLibo\webgl-fundamentals\node_modules\.bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn\;C:\Program Files\TortoiseSVN\bin;C:\Users\56386\.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\nodejs\;C:\Program Files\Git\cmd;C:\Users\56386\AppData\Local\Microsoft\WindowsApps;;C:\Fiddler;C:\Users\56386\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\WebStorm 2019.1\bin;;C:\Users\56386\AppData\Roaming\npm 9 verbose lifecycle webgl-fundamentals@0.0.0~build: CWD: C:\WorkLibo\webgl-fundamentals 10 silly lifecycle webgl-fundamentals@0.0.0~build: Args: [ '/d /s /c', 'grunt' ] 11 silly lifecycle webgl-fundamentals@0.0.0~build: Returned: code: 3 signal: null 12 info lifecycle webgl-fundamentals@0.0.0~build: Failed to exec build script 13 verbose stack Error: webgl-fundamentals@0.0.0 build: `grunt` 13 verbose stack Exit status 3 13 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:189:13) 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:189:13) 13 verbose stack at maybeClose (internal/child_process.js:970:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid webgl-fundamentals@0.0.0 15 verbose cwd C:\WorkLibo\webgl-fundamentals 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" "build" 18 verbose node v10.15.3 19 verbose npm v6.4.1 20 error code ELIFECYCLE 21 error errno 3 22 error webgl-fundamentals@0.0.0 build: `grunt` 22 error Exit status 3 23 error Failed at the webgl-fundamentals@0.0.0 build script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 3, true ] ```
nodejs创建kraken项目报错,使用vs2013
创建一个KRAKEN项目,npm install -g generator-kraken,报错提示node版本过低,手动升级版本0.10.28至4.2.4,继续创建,报错: 在此解决方案中一次生成一个项目。若要启用并行生成,请添加“/m”开关。 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(399,5): error MSB3191: 无法创建目录“Release\obj\thread_sleep\thread_sleep.tlog\”。指定的路径或文件名太长,或者两者都太长。完全限定文件名必须少于 260 个字符,并且目录名必须少于 248 个字符。 [C:\Users\liuxiang\AppData\Roaming\npm\node_modules\generator-kraken\node_modules\yeoman-generator\node_modules\cross-spawn\node_modules\spawn-sync\node_modules\try-thread-sleep\node_modules\thread-sleep\build\thread_sleep.vcxproj] gyp ERR! build error gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe` fail ed with exit code: 1 gyp ERR! stack at ChildProcess.onExit (C:\Document\node.js\node_modules\npm\node_modules\node-gyp\lib\build.js:270:23) gyp ERR! stack at emitTwo (events.js:87:13) gyp ERR! stack at ChildProcess.emit (events.js:172:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_proces s.js:200:12) gyp ERR! System Windows_NT 6.1.7601 gyp ERR! command "C:\\Document\\node.js\\node.exe" "C:\\Document\\node.js\\node_ modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "build" "--fallback-to-b uild" "--module=C:\\Users\\liuxiang\\AppData\\Roaming\\npm\\node_modules\\genera tor-kraken\\node_modules\\yeoman-generator\\node_modules\\cross-spawn\\node_modu les\\spawn-sync\\node_modules\\try-thread-sleep\\node_modules\\thread-sleep\\lib \\binding\\Release\\node-v46-win32-x64\\thread_sleep.node" "--module_name=thread _sleep" "--module_path=C:\\Users\\liuxiang\\AppData\\Roaming\\npm\\node_modules\ \generator-kraken\\node_modules\\yeoman-generator\\node_modules\\cross-spawn\\no de_modules\\spawn-sync\\node_modules\\try-thread-sleep\\node_modules\\thread-sle ep\\lib\\binding\\Release\\node-v46-win32-x64" gyp ERR! cwd C:\Users\liuxiang\AppData\Roaming\npm\node_modules\generator-kraken \node_modules\yeoman-generator\node_modules\cross-spawn\node_modules\spawn-sync\ node_modules\try-thread-sleep\node_modules\thread-sleep gyp ERR! node -v v4.2.4 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute 'node-gyp.cmd build --fallback- to-build --module=C:\Users\liuxiang\AppData\Roaming\npm\node_modules\generator-k raken\node_modules\yeoman-generator\node_modules\cross-spawn\node_modules\spawn- sync\node_modules\try-thread-sleep\node_modules\thread-sleep\lib\binding\Release \node-v46-win32-x64\thread_sleep.node --module_name=thread_sleep --module_path=C :\Users\liuxiang\AppData\Roaming\npm\node_modules\generator-kraken\node_modules\ yeoman-generator\node_modules\cross-spawn\node_modules\spawn-sync\node_modules\t ry-thread-sleep\node_modules\thread-sleep\lib\binding\Release\node-v46-win32-x64 ' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (C:\Users\liuxiang\AppDa ta\Roaming\npm\node_modules\generator-kraken\node_modules\yeoman-generator\node_ modules\cross-spawn\node_modules\spawn-sync\node_modules\try-thread-sleep\node_m odules\thread-sleep\node_modules\node-pre-gyp\lib\util\compile.js:83:29) node-pre-gyp ERR! stack at emitTwo (events.js:87:13) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:818:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/chi ld_process.js:211:5) node-pre-gyp ERR! System Windows_NT 6.1.7601 node-pre-gyp ERR! command "C:\\Document\\node.js\\node.exe" "C:\\Users\\liuxiang \\AppData\\Roaming\\npm\\node_modules\\generator-kraken\\node_modules\\yeoman-ge nerator\\node_modules\\cross-spawn\\node_modules\\spawn-sync\\node_modules\\try- thread-sleep\\node_modules\\thread-sleep\\node_modules\\node-pre-gyp\\bin\\node- pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd C:\Users\liuxiang\AppData\Roaming\npm\node_modules\generat or-kraken\node_modules\yeoman-generator\node_modules\cross-spawn\node_modules\sp awn-sync\node_modules\try-thread-sleep\node_modules\thread-sleep node-pre-gyp ERR! node -v v4.2.4 node-pre-gyp ERR! node-pre-gyp -v v0.6.9 node-pre-gyp ERR! not ok Failed to execute 'node-gyp.cmd build --fallback-to-build --module=C:\Users\liux iang\AppData\Roaming\npm\node_modules\generator-kraken\node_modules\yeoman-gener ator\node_modules\cross-spawn\node_modules\spawn-sync\node_modules\try-thread-sl eep\node_modules\thread-sleep\lib\binding\Release\node-v46-win32-x64\thread_slee p.node --module_name=thread_sleep --module_path=C:\Users\liuxiang\AppData\Roamin g\npm\node_modules\generator-kraken\node_modules\yeoman-generator\node_modules\c ross-spawn\node_modules\spawn-sync\node_modules\try-thread-sleep\node_modules\th read-sleep\lib\binding\Release\node-v46-win32-x64' (1) npm WARN optional dep failed, continuing thread-sleep@1.0.4 > spawn-sync@1.0.15 postinstall C:\Users\liuxiang\AppData\Roaming\npm\node_modul es\generator-kraken\node_modules\yeoman-generator\node_modules\cross-spawn\node_ modules\spawn-sync > node postinstall generator-kraken@2.2.2 C:\Users\liuxiang\AppData\Roaming\npm\node_modules\genera tor-kraken ├── debuglog@1.0.1 ├── underscore.string@3.2.2 ├── mkdirp@0.5.1 (minimist@0.0.8) ├── chalk@1.1.1 (escape-string-regexp@1.0.4, ansi-styles@2.1.0, supports-colo r@2.0.0, has-ansi@2.0.0, strip-ansi@3.0.0) ├── update-notifier@0.3.2 (is-npm@1.0.0, string-length@1.0.1, semver-diff@2.1 .0, latest-version@1.0.1, configstore@0.3.2) └── yeoman-generator@0.20.3 (detect-conflict@1.0.0, read-chunk@1.0.1, yeoman- assert@2.1.1, path-exists@1.0.0, yeoman-welcome@1.0.1, path-is-absolute@1.0.0, a sync@1.5.2, mime@1.3.4, class-extend@0.1.2, text-table@0.2.0, diff@2.2.1, dargs@ 4.1.0, xdg-basedir@2.0.0, user-home@2.0.0, istextorbinary@1.0.2, shelljs@0.5.3, nopt@3.0.6, debug@2.2.0, run-async@0.1.0, cli-table@0.3.1, through2@2.0.0, glob@ 5.0.15, findup-sync@0.2.1, rimraf@2.5.0, mem-fs-editor@2.1.0, sinon@1.17.2, gith ub-username@2.1.0, dateformat@1.0.12, pretty-bytes@2.0.1, yeoman-environment@1.5 .2, gruntfile-editor@1.1.0, html-wiring@1.2.0, download@4.4.3, lodash@3.10.1, in quirer@0.8.5, cross-spawn@2.1.4)
npm install socket.io 问题,安装不成功,报了ERR,不哪出问题了。
npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "socket.io" npm ERR! node v6.11.3 npm ERR! npm v3.10.10 npm ERR! code ENOSELF npm ERR! Refusing to install socket.io as a dependency of itself npm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! Please include the following file with any support request: npm ERR! E:\websocket\socket\npm-debug.log ``` ```
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
使用 Docker 部署 Spring Boot 项目
Docker 技术发展为微服务落地提供了更加便利的环境,使用 Docker 部署 Spring Boot 其实非常简单,这篇文章我们就来简单学习下。首先构建一个简单的 S...
英特尔不为人知的 B 面
从 PC 时代至今,众人只知在 CPU、GPU、XPU、制程、工艺等战场中,英特尔在与同行硬件芯片制造商们的竞争中杀出重围,且在不断的成长进化中,成为全球知名的半导体公司。殊不知,在「刚硬」的背后,英特尔「柔性」的软件早已经做到了全方位的支持与支撑,并持续发挥独特的生态价值,推动产业合作共赢。 而对于这一不知人知的 B 面,很多人将其称之为英特尔隐形的翅膀,虽低调,但是影响力却不容小觑。 那么,在...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
刷了几千道算法题,这些我私藏的刷题网站都在这里了!
遥想当年,机缘巧合入了 ACM 的坑,周边巨擘林立,从此过上了"天天被虐似死狗"的生活… 然而我是谁,我可是死狗中的战斗鸡,智力不够那刷题来凑,开始了夜以继日哼哧哼哧刷题的日子,从此"读题与提交齐飞, AC 与 WA 一色 ",我惊喜的发现被题虐既刺激又有快感,那一刻我泪流满面。这么好的事儿作为一个正直的人绝不能自己独享,经过激烈的颅内斗争,我决定把我私藏的十几个 T 的,阿不,十几个刷题网...
白话阿里巴巴Java开发手册高级篇
不久前,阿里巴巴发布了《阿里巴巴Java开发手册》,总结了阿里巴巴内部实际项目开发过程中开发人员应该遵守的研发流程规范,这些流程规范在一定程度上能够保证最终的项目交付质量,通过在时间中总结模式,并推广给广大开发人员,来避免研发人员在实践中容易犯的错误,确保最终在大规模协作的项目中达成既定目标。 无独有偶,笔者去年在公司里负责升级和制定研发流程、设计模板、设计标准、代码标准等规范,并在实际工作中进行...
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
redis分布式锁,面试官请随便问,我都会
文章有点长并且绕,先来个图片缓冲下! 前言 现在的业务场景越来越复杂,使用的架构也就越来越复杂,分布式、高并发已经是业务要求的常态。像腾讯系的不少服务,还有CDN优化、异地多备份等处理。 说到分布式,就必然涉及到分布式锁的概念,如何保证不同机器不同线程的分布式锁同步呢? 实现要点 互斥性,同一时刻,智能有一个客户端持有锁。 防止死锁发生,如果持有锁的客户端崩溃没有主动释放锁,也要保证锁可以正常释...
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
Nginx 原理和架构
Nginx 是一个免费的,开源的,高性能的 HTTP 服务器和反向代理,以及 IMAP / POP3 代理服务器。Nginx 以其高性能,稳定性,丰富的功能,简单的配置和低资源消耗而闻名。 Nginx 的整体架构 Nginx 里有一个 master 进程和多个 worker 进程。master 进程并不处理网络请求,主要负责调度工作进程:加载配置、启动工作进程及非停升级。worker 进程负责处...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
Java世界最常用的工具类库
Apache Commons Apache Commons有很多子项目 Google Guava 参考博客
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
为什么要学数据结构?
一、前言 在可视化化程序设计的今天,借助于集成开发环境可以很快地生成程序,程序设计不再是计算机专业人员的专利。很多人认为,只要掌握几种开发工具就可以成为编程高手,其实,这是一种误解。要想成为一个专业的开发人员,至少需要以下三个条件: 1) 能够熟练地选择和设计各种数据结构和算法 2) 至少要能够熟练地掌握一门程序设计语言 3) 熟知所涉及的相关应用领域的知识 其中,后两个条件比较容易实现,而第一个...
Android 9.0 init 启动流程
阅读五分钟,每日十点,和您一起终身学习,这里是程序员Android本篇文章主要介绍Android开发中的部分知识点,通过阅读本篇文章,您将收获以下内容:一、启动流程概述一、 启动流程概述Android启动流程跟Linux启动类似,大致分为如下五个阶段。1.开机上电,加载固化的ROM。2.加载BootLoader,拉起Android OS。3.加载Uboot,初始外设,引导Kernel启动等。...
相关热词 c# clr dll c# 如何orm c# 固定大小的字符数组 c#框架设计 c# 删除数据库 c# 中文文字 图片转 c# 成员属性 接口 c#如何将程序封装 16进制负数转换 c# c#练手项目
立即提问