微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ember 遗留项目中 Node-sass 的问题

如何解决Ember 遗留项目中 Node-sass 的问题

我在 ember 中有一个遗留项目,当尝试运行 npm i 时,它出现以下错误

> node-sass@3.13.1 install 
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-72_bind
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-72_binding.nod

HTTP error 404 Not Found

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

> phantomjs-prebuilt@2.1.16 install
> node install.js

PhantomJS not found on PATH
Download already available at C:\Users\\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.z
Verified checksum of prevIoUsly downloaded file
Extracting zip contents
Removing phantomjs-prebuilt\li
copying extracted folder AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-exhantomjs-2.1.1-windows -> node_modules\phanantom
Writing location.js file
Done. Phantomjs binary available at node_moilt\lib\phantom\bin\phantomjs.exe

> core-js@2.6.12 postinstall node_modules\bdules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standa

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also,the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> core-js@2.6.12 postinstall node_modules\bdules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js@2.6.12 postinstall node_modules\bules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> node-sass@3.13.1 postinstall node_modules
> node scripts/build.js

Building: C:\Program Files\nodejs\node.exe \\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_libr
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',gyp verb cli   'C:\\Users\\\\Documents\\PROJetoS\\\\node_modules\\node-gygyp 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.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 (C:\Users\\Documents\PROJetoS\RedeCotizadorFroich\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_modu:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_modu:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesgyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` Failed  python2 Error: not found: python2
gyp verb `which` Failed     at getNotFoundError (C:\Users\\Documents\PROJetoS\RedeCotizadorFroich\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_modu:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_modu:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesgyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` Failed   stack: 'Error: not found: python2\n' +
gyp verb `which` Failed     '    at getNotFoundError (C:\\Users\\\\Documents\\PROJetoS\\RedeCo_modules\\which\\which.js:13:12)\n' +
gyp verb `which` Failed     '    at F (C:\\Users\\\\Documents\\PROJetoS\\\\which.js:68:19)\n' +
gyp verb `which` Failed     '    at E (C:\\Users\\\\Documents\\PROJetoS\\\\which.js:80:29)\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\nhich.js:89:16\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\nndex.js:42:5\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\nindows.js:36:5\n' +
gyp verb `which` Failed     '    at FSReqCallback.oncomplete (fs.js:158: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 (C:\Users\\Documents\PROJetoS\RedeCotizadorFroich\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_modu:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_modu:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesgyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` Failed  python Error: not found: python
gyp verb `which` Failed     at getNotFoundError (C:\Users\\Documents\PROJetoS\RedeCotizadorFroich\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_modu:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_modu:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesgyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` Failed   stack: 'Error: not found: python\n' +
gyp verb `which` Failed     '    at getNotFoundError (C:\\Users\\\\Documents\\PROJetoS\\RedeCo_modules\\which\\which.js:13:12)\n' +
gyp verb `which` Failed     '    at F (C:\\Users\\\\Documents\\PROJetoS\\\\which.js:68:19)\n' +
gyp verb `which` Failed     '    at E (C:\\Users\\\\Documents\\PROJetoS\\\\which.js:80:29)\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\nhich.js:89:16\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\nndex.js:42:5\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\nindows.js:36:5\n' +
gyp verb `which` Failed     '    at FSReqCallback.oncomplete (fs.js:158: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 (C:\Users\\Documents\PROJetoS\RedeCotizadorFrode-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\\Documents\PROJetoS\RedeCotizadorFrone-gyp\lib\configure.js:509:16)
gyp ERR! stack     at callback (C:\Users\\Documents\PROJetoS\\node_modulels.js:299:20)
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\\\Documents\\PROJetoS\\RededorFrontEnd\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libslags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\\Documents\PROJetoS\\node_modules\node-sass
gyp ERR! node -v v12.14.1
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build Failed with error code: 1
npm WARN babel-plugin-debug-macros@0.2.0 requires a peer of @babel/core@^7.0.0-beta.42 but none is ind. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
PS C:\Users\\Documents\PROJetoS\> npm install node-sass

> node-sass@6.0.1 install C:\Users\\Documents\PROJetoS\\node_modules\node
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v6.0.1/win32-x64-72_bindie
Download complete .] - :
Binary saved to C:\Users\\Documents\PROJetoS\\node_modules\node-sass\vend32-x64-72\binding.node
Caching binary to C:\Users\\AppData\Roaming\npm-cache\node-sass\6.0.1\win32-x64-72_binding.nod

> node-sass@6.0.1 postinstall C:\Users\\Documents\PROJetoS\\node_modules\ass
> node scripts/build.js

Binary found at C:\Users\\Documents\PROJetoS\\node_modules\node-sass\vend32-x64-72\binding.node
Testing binary
PS C:\Users\\Documents\PROJetoS\> npm i

> node-sass@3.13.1 install C:\Users\\Documents\PROJetoS\\node_modules\brosass-source-maps\node_modules\node-sass
> node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-72_bindde
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-72_binding.nod

HTTP error 404 Not Found

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

> phantomjs-prebuilt@2.1.16 install C:\Users\\Documents\PROJetoS\\node_mophantomjs-prebuilt
> node install.js

PhantomJS not found on PATH
Download already available at C:\Users\\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.z
Verified checksum of prevIoUsly downloaded file
Extracting zip contents
Removing C:\Users\\Documents\PROJetoS\\node_modules\phantomjs-prebuilt\litom
copying extracted folder C:\Users\\AppData\Local\Temp\phantomjs\phantomjs-2.1.1-windows.zip-ex1627499579693\phantomjs-2.1.1-windows -> C:\Users\\Documents\PROJetoS\\noules\phantomjs-prebuilt\lib\phantom
Writing location.js file
Done. Phantomjs binary available at C:\Users\\Documents\PROJetoS\\node_mophantomjs-prebuilt\lib\phantom\bin\phantomjs.exe

> core-js@2.6.12 postinstall C:\Users\\Documents\PROJetoS\\node_modules\bolyfill\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standarary!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also,the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> core-js@2.6.12 postinstall C:\Users\\Documents\PROJetoS\\node_modules\begister\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> core-js@2.6.12 postinstall C:\Users\\Documents\PROJetoS\\node_modules\buntime\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"


> node-sass@3.13.1 postinstall C:\Users\\Documents\PROJetoS\\node_modulesoli-sass-source-maps\node_modules\node-sass
> node scripts/build.js

Building: C:\Program Files\nodejs\node.exe C:\Users\\Documents\PROJetoS\\odules\broccoli-sass-source-maps\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_exibsass_cflags= --libsass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [
gyp verb cli   'C:\\Program Files\\nodejs\\node.exe',gyp verb cli   'C:\\Users\\\\Documents\\PROJetoS\\\\node_modules\\broccol-source-maps\\node_modules\\node-gyp\\bin\\node-gyp.js',gyp verb cli   'rebuild',gyp verb cli   '--libsass_library='      
gyp verb cli ]
gyp info using node-gyp@3.8.0
gyp info using node@12.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 (C:\Users\\Documents\PROJetoS\RedeCotizadorFronode_modules\broccoli-sass-source-maps\node_modules\which\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:68:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:80:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesoli-sass-source-maps\node_modules\which\which.js:89:16
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\index.js:42:5
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\windows.js:36:5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` Failed  python2 Error: not found: python2
gyp verb `which` Failed     at getNotFoundError (C:\Users\\Documents\PROJetoS\RedeCotizadorFronode_modules\broccoli-sass-source-maps\node_modules\which\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:68:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:80:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesoli-sass-source-maps\node_modules\which\which.js:89:16
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\index.js:42:5
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\windows.js:36:5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` Failed   stack: 'Error: not found: python2\n' +
gyp verb `which` Failed     '    at getNotFoundError (C:\\Users\\\\Documents\\PROJetoS\\RedeCorFrontEnd\\node_modules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:13:12)\n' +
gyp verb `which` Failed     '    at F (C:\\Users\\\\Documents\\PROJetoS\\_modules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:68:19)\n' +
gyp verb `which` Failed     '    at E (C:\\Users\\\\Documents\\PROJetoS\\_modules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:80:29)\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\ndules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:89:16\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\ndules\\isexe\\index.js:42:5\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\ndules\\isexe\\windows.js:36:5\n' +
gyp verb `which` Failed     '    at FSReqCallback.oncomplete (fs.js:158: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 (C:\Users\\Documents\PROJetoS\RedeCotizadorFronode_modules\broccoli-sass-source-maps\node_modules\which\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:68:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:80:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesoli-sass-source-maps\node_modules\which\which.js:89:16
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\index.js:42:5
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\windows.js:36:5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21)
gyp verb `which` Failed  python Error: not found: python
gyp verb `which` Failed     at getNotFoundError (C:\Users\\Documents\PROJetoS\RedeCotizadorFronode_modules\broccoli-sass-source-maps\node_modules\which\which.js:13:12)
gyp verb `which` Failed     at F (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:68:19)
gyp verb `which` Failed     at E (C:\Users\\Documents\PROJetoS\\node_moduoccoli-sass-source-maps\node_modules\which\which.js:80:29)
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modulesoli-sass-source-maps\node_modules\which\which.js:89:16
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\index.js:42:5
gyp verb `which` Failed     at C:\Users\\Documents\PROJetoS\\node_modules\windows.js:36:5
gyp verb `which` Failed     at FSReqCallback.oncomplete (fs.js:158:21) {
gyp verb `which` Failed   stack: 'Error: not found: python\n' +
gyp verb `which` Failed     '    at getNotFoundError (C:\\Users\\\\Documents\\PROJetoS\\RedeCorFrontEnd\\node_modules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:13:12)\n' +
gyp verb `which` Failed     '    at F (C:\\Users\\\\Documents\\PROJetoS\\_modules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:68:19)\n' +
gyp verb `which` Failed     '    at E (C:\\Users\\\\Documents\\PROJetoS\\_modules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:80:29)\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\ndules\\broccoli-sass-source-maps\\node_modules\\which\\which.js:89:16\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\ndules\\isexe\\index.js:42:5\n' +
gyp verb `which` Failed     '    at C:\\Users\\\\Documents\\PROJetoS\\\\ndules\\isexe\\windows.js:36:5\n' +
gyp verb `which` Failed     '    at FSReqCallback.oncomplete (fs.js:158:21)',you can set the PYTHON env variable.
gyp ERR! stack     at PythonFinder.failnopython (C:\Users\\Documents\PROJetoS\RedeCotizadorFronode_modules\broccoli-sass-source-maps\node_modules\node-gyp\lib\configure.js:484:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\\Documents\PROJetoS\RedeCotizadorFronode_modules\broccoli-sass-source-maps\node_modules\node-gyp\lib\configure.js:509:16)
gyp ERR! stack     at callback (C:\Users\\Documents\PROJetoS\\node_moduleeful-fs\polyfills.js:299:20)
gyp ERR! stack     at FSReqCallback.oncomplete (fs.js:158:21)
gyp ERR! System Windows_NT 10.0.19042
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build Failed with error code: 1
npm WARN babel-plugin-debug-macros@0.2.0 requires a peer of @babel/core@^7.0.0-beta.42 but none is installed. You must install peer dependencies yourself.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.13.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!     C:\Users\\AppData\Roaming\npm-cache\_logs\2021-07-28T19_13_06_459Z-debug.log

但我已经尝试了以下所有内容

  1. 删除节点模块
  2. 删除Package-lock.json
  3. 安装最新的 node-sass 版本
  4. 安装最新版本的 gulp

但即便如此,同样的错误仍然存​​在,我相信 ember-cli在这样做。

我应该如何解决这个问题?我使用 WindowsIntranet(公司)。

我的版本:

node: v12.14.1
npm 6.13.4

PACKAGE.JSON:

{
  "name": "xp-investimentos-frontend","version": "0.3.1","description": "Small description for xp-investimentos-frontend goes here","private": true,"directories": {
    "doc": "doc","test": "tests"
  },"scripts": {
    "build": "ember build","start": "ember server","test": "ember test"
  },"repository": "","engines": {
    "node": ">= 0.10.0"
  },"author": "","license": "MIT","devDependencies": {
    "broccoli-asset-rev": "^2.4.2","ember-accordion": "0.3.6","ember-ajax": "2.4.1","ember-array-contains-helper": "1.3.2","ember-bootstrap": "0.7.1","ember-browserify": "1.1.9","ember-charts": "1.0.0","ember-cli": "2.5.0","ember-cli-app-version": "1.0.0","ember-cli-array-slice": "2.0.0","ember-cli-babel": "5.2.1","ember-cli-bootstrap-datepicker": "0.5.5","ember-cli-bootstrap-sassy": "0.5.3","ember-cli-clipboard": "0.8.1","ember-cli-d3-shape": "0.8.5","ember-cli-dependency-checker": "^1.2.0","ember-cli-htmlbars": "^1.0.3","ember-cli-htmlbars-inline-precompile": "^0.3.1","ember-cli-inject-live-reload": "^1.4.0","ember-cli-inline-content": "^0.4.1","ember-cli-mirage": "0.2.4","ember-cli-moment-shim": "2.0.0","ember-cli-nouiSlider": "0.9.0","ember-cli-pagination": "3.1.4","ember-cli-release": "0.2.8","ember-cli-sass": "5.3.1","ember-cli-selectize": "0.5.5","ember-cli-uglify": "^1.2.0","ember-concurrency": "0.7.4","ember-data": "^2.5.0","ember-export-application-global": "^1.0.5","ember-file-upload": "2.5.0","ember-inflector": "2.1.0","ember-inline-svg": "^0.1.7","ember-inputmask": "0.2.2","ember-load-initializers": "^0.5.1","ember-maskmoney": "0.4.3","ember-modal-dialog": "^2.4.4","ember-models-table": "1.7.0","ember-moment": "7.0.0-beta.3","ember-radio-button": "1.0.7","ember-resize": "0.0.12","ember-resolver": "^2.0.3","ember-route-action-helper": "2.0.1","ember-truth-helpers": "1.3.0","ember-uploader": "1.2.2","hashcode": "^1.0.3","ivy-tabs": "2.0.0","jquery-maskmoney": "3.0.2","liquid-fire": "0.27.0","loader.js": "^4.0.1","lodash": "^4.12.0","moment": "^2.17.1","node-sass": "^6.0.1","phantomjs-prebuilt": "^2.1.14"
  },"dependencies": {
    "closest-num": "0.0.1","currency-formatter": "^1.4.2","ember-cli-data-export": "^0.1.29","natives": "^1.1.6","ocanvas": "^2.9.1","percent-value": "^1.0.7","socket.io": "^1.5.1"
  }
}

解决方法

这不起作用,因为节点 12.x 没有上传该 node-sass version 的二进制文件。它只会上升到节点 7。然后它会尝试为该节点版本编译它,但您还没有安装 python2(并且您还需要 Visual C++,不确定这在 Windows 上如何工作)。

node-sass 6.0 不是这里的问题,也不是您的模块有问题。某些其他模块的依赖项需要该版本的 node-sass。所以你需要以某种方式覆盖依赖。 Like doing this. 您需要为每个 node-sass 3.13.1 版本的每次出现更新它。

另一种选择是针对该版本的节点构建模块,但您需要安装 Visual C++ 和 python2I found some further steps here

Microsoft Store package 安装当前版本的 Python。

手动安装工具和配置:

  • 安装 Visual C++ 构建环境:Visual Studio Build Tools(使用 “Visual C++ 构建工具”工作负载)或 Visual Studio Community(使用 “使用 C++ 进行桌面开发”工作负载)
  • 启动 cmd,npm config set msvs_version 2017

最后一种选择是简单地安装一个 node 7 version

,

很难说。我的猜测是这个错误与您的网络基础设施有关。但是在解决此问题后,您可能会遇到其他问题。尝试在“自有”基础设施后面运行您的项目。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。