安装脚手架报错
来源:2-2 脚手架生成代码介绍
Urchiola_
2021-04-09
Building: D:\Application\Development\Nvm\nodejs\node.exe D:\Root\Study\A.FontEnd\vue-music\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 [
gyp verb cli ‘D:\Application\Development\Nvm\nodejs\node.exe’,
gyp verb cli ‘D:\Root\Study\A.FontEnd\vue-music\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 verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@12.18.4 | 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 (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:89:16
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:168:21)
gyp verb which
failed python2 Error: not found: python2
gyp verb which
failed at getNotFoundError (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:89:16
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:168:21) {
gyp verb which
failed code: 'ENOENT’
gyp verb which
failed }
gyp verb check python checking for Python executable “python” in the PATH
gyp verb which
failed Error: not found: python
gyp verb which
failed at getNotFoundError (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:89:16
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:168:21)
gyp verb which
failed python Error: not found: python
gyp verb which
failed at getNotFoundError (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:13:12)
gyp verb which
failed at F (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:68:19)
gyp verb which
failed at E (D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:80:29)
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\which\which.js:89:16
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\index.js:42:5
gyp verb which
failed at D:\Root\Study\A.FontEnd\vue-music\node_modules\isexe\windows.js:36:5
gyp verb which
failed at FSReqCallback.oncomplete (fs.js:168:21) {
gyp verb which
failed code: 'ENOENT’
gyp verb which
failed }
gyp verb could not find “python”. checking python launcher
gyp verb could not find “python”. guessing location
gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can’t find Python executable “python”, you can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (D:\Root\Study\A.FontEnd\vue-music\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack at PythonFinder. (D:\Root\Study\A.FontEnd\vue-music\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack at callback (D:\Root\Study\A.FontEnd\vue-music\node_modules\graceful-fs\polyfills.js:299:20)
gyp ERR! stack at FSReqCallback.oncomplete (fs.js:168:21)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command “D:\Application\Development\Nvm\nodejs\node.exe” “D:\Root\Study\A.FontEnd\vue-music\node_modules\node-gyp\bin\node-gyp.js” “rebuild” “–verbose” “–libsass_ext=” “–libsass_cflags=” “–libsass_ldflags=” "–libsass_library="
gyp ERR! cwd D:\Root\Study\A.FontEnd\vue-music\node_modules\node-sass
gyp ERR! node -v v12.18.4
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 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! D:\Application\Development\Nvm\NPM\node_cache_logs\2021-04-09T09_18_52_487Z-debug.log
ERROR command failed: npm install --loglevel error
PS D:\Root\Study\A.FontEnd> npm -v
6.14.6
PS D:\Root\Study\A.FontEnd> node -v
v12.18.4
3回答
-
Urchiola_
提问者
2021-04-09
已经解决了!! 我是用nvm 去切换node 版本!
重新执行了一次 vue create ,解决了!022021-04-10 -
Urchiola_
提问者
2021-04-09
运行 npm run serve
Syntax Error: Error: Cannot find module 'node-sass'
Require stack:
- D:\Root\Study\A.FontEnd\vue-music\node_modules\sass-loader\dist\getDefaultSassImplementation.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\sass-loader\dist\getSassImplementation.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\sass-loader\dist\index.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\sass-loader\dist\cjs.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\loader-runner\lib\loadLoader.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\loader-runner\lib\LoaderRunner.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\webpack\lib\NormalModule.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\webpack\lib\NormalModuleFactory.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\webpack\lib\Compiler.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\webpack\lib\webpack.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\@vue\cli-service\lib\commands\serve.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\@vue\cli-service\lib\Service.js
- D:\Root\Study\A.FontEnd\vue-music\node_modules\@vue\cli-service\bin\vue-cli-service.js
@ ./node_modules/vue-style-loader??ref--8-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!./node_modules/vue-loader-v16/dist/stylePostLoader.js!./node_modules/postcss-loader/src??ref--8-oneOf-1-2!./node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader-v16/dist??ref--0-1!./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss 4:14-419 15:3-20:5 16:22-427
@ ./src/App.vue?vue&type=style&index=0&id=7ba5bd90&lang=scss
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
00 -
Urchiola_
提问者
2021-04-09
我是需要添加python 之类的 依赖吗?
00
相似问题