【问题标题】:How to fix EONENT npm install error for ionic app?如何修复离子应用程序的 EONENT npm 安装错误?
【发布时间】:2020-01-28 23:17:24
【问题描述】:

我购买了一个 Firebase 订餐应用(离子)。我实际上被阻止了一个问题: (我有 node js、npm、ionic [已安装最新版本])。我正在尝试在应用程序文件夹中“npm install”,以便能够在我的本地主机上部署应用程序,但我有这个错误:

gyp verb `which` failed   code: 'ENOENT' }
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\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed  python { Error: not found: python
gyp verb `which` failed     at getNotFoundError (C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:13:12)
gyp verb `which` failed     at F (C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:68:19)
gyp verb `which` failed     at E (C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:80:29)
gyp verb `which` failed     at C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\which\which.js:89:16
gyp verb `which` failed     at C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\isexe\index.js:42:5
gyp verb `which` failed     at C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\isexe\windows.js:36:5
gyp verb `which` failed     at FSReqWrap.oncomplete (fs.js:153:21)
gyp verb `which` failed   stack:
gyp verb `which` failed    'Error: not found: python\n    at getNotFoundError (C:\\Users\\Utilisateur\\Documents\\successdt-ion_restaurant_admin-d763ffe150ec\\customer\\node_modules\\which\\which.js:13:12)\n    at F (C:\\Users\\Utilisateur\\Documents\\successdt-ion_restaurant_admin-d763ffe150ec\\customer\\node_modules\\which\\which.js:68:19)\n    at E (C:\\Users\\Utilisateur\\Documents\\successdt-ion_restaurant_admin-d763ffe150ec\\customer\\node_modules\\which\\which.js:80:29)\n    at C:\\Users\\Utilisateur\\Documents\\successdt-ion_restaurant_admin-d763ffe150ec\\customer\\node_modules\\which\\which.js:89:16\n    at C:\\Users\\Utilisateur\\Documents\\successdt-ion_restaurant_admin-d763ffe150ec\\customer\\node_modules\\isexe\\index.js:42:5\n    at C:\\Users\\Utilisateur\\Documents\\successdt-ion_restaurant_admin-d763ffe150ec\\customer\\node_modules\\isexe\\windows.js:36:5\n    at FSReqWrap.oncomplete (fs.js:153:21)',
gyp verb `which` failed   code: 'ENOENT' }
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\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\node-gyp\lib\configure.js:483:19)
gyp ERR! stack     at PythonFinder.<anonymous> (C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\node-gyp\lib\configure.js:508:16)
gyp ERR! stack     at C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\graceful-fs\polyfills.js:284:29
gyp ERR! stack     at FSReqWrap.oncomplete (fs.js:153:21)
gyp ERR! System Windows_NT 10.0.17134
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Utilisateur\\Documents\\successdt-ion_restaurant_admin-d763ffe150ec\\customer\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\Users\Utilisateur\Documents\successdt-ion_restaurant_admin-d763ffe150ec\customer\node_modules\node-sass
gyp ERR! node -v v10.16.3
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN angularfire2@5.0.0-rc.6 requires a peer of rxjs@^5.5.4 but none is installed. You must install peer dependencies yourself.
npm WARN uglifyjs-webpack-plugin@0.4.6 requires a peer of webpack@^1.9 || ^2 || ^2.1.0-beta || ^2.2.0-rc || ^3.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.2 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.5.3 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.5.3 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\Utilisateur\AppData\Roaming\npm-cache\_logs\2019-09-29T10_49_55_470Z-debug.log

我从一天开始就在尝试解决这个错误: - 重新安装所有模块 - 安装蟒蛇 - npm 初始化 还有一些小东西,但没有固定的方法。

我是从这里开始的,谢谢你的帮助!

【问题讨论】:

    标签: angular ionic-framework npm npm-install


    【解决方案1】:

    尝试以管理员身份运行

    npm install --global --production windows-build-tools
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-09-09
      • 2020-07-24
      • 2022-09-26
      • 1970-01-01
      • 2019-07-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多