【发布时间】:2018-08-16 11:57:01
【问题描述】:
我必须在我的项目中为节点模块安装 node.js,同时安装节点模块显示以下错误。如何纠正这个错误。
注意:我运行 npm run clean 并删除我的节点模块文件夹,然后再次运行 npm install 但没有成功。
如果我使用 npm run build:client 运行这个项目,它也会显示
缺少脚本:build:Clinet
如果添加、删除或安装,请告诉我。
谢谢....
"c:\Python\27\python.exe" i
n the PATH
gyp verb `which` failed Error: not found: c:\Python\27\python.exe
gyp verb `which` failed at getNotFoundError (C:\digitalframe\node_modules\wh
ich\which.js:13:12)
gyp verb `which` failed at F (C:\digitalframe\node_modules\which\which.js:68
:19)
gyp verb `which` failed at E (C:\digitalframe\node_modules\which\which.js:80
:29)
gyp verb `which` failed at C:\digitalframe\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\digitalframe\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\digitalframe\node_modules\isexe\windows.js:36:
5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed c:\Python\27\python.exe { Error: not found: c:\Python\2
7\python.exe
gyp verb `which` failed at getNotFoundError (C:\digitalframe\node_modules\wh
ich\which.js:13:12)
gyp verb `which` failed at F (C:\digitalframe\node_modules\which\which.js:68
:19)
gyp verb `which` failed at E (C:\digitalframe\node_modules\which\which.js:80
:29)
gyp verb `which` failed at C:\digitalframe\node_modules\which\which.js:89:16
gyp verb `which` failed at C:\digitalframe\node_modules\isexe\index.js:42:5
gyp verb `which` failed at C:\digitalframe\node_modules\isexe\windows.js:36:
5
gyp verb `which` failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb `which` failed stack: 'Error: not found: c:\\Python\\27\\python.exe\n
at getNotFoundError (C:\\digitalframe\\node_modules\\which\\which.js:13:12)\
n at F (C:\\digitalframe\\node_modules\\which\\which.js:68:19)\n at E (C:\
\digitalframe\\node_modules\\which\\which.js:80:29)\n at C:\\digitalframe\\no
de_modules\\which\\which.js:89:16\n at C:\\digitalframe\\node_modules\\isexe\
\index.js:42:5\n at C:\\digitalframe\\node_modules\\isexe\\windows.js:36:5\n
at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb `which` failed code: 'ENOENT' }
gyp verb could not find "c:\Python\27\python.exe". checking python launcher
gyp verb could not find "c:\Python\27\python.exe". 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 "c:\Python\27\python.exe", yo
u can set the PYTHON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:\digitalframe\node_modules\no
de-gyp\lib\configure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:\digitalframe\node_modules\nod
e-gyp\lib\configure.js:508:16)
gyp ERR! stack at C:\digitalframe\node_modules\graceful-fs\polyfills.js:284:
29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 6.1.7600
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\digitalframe\\node_m
odules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--li
bsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:\digitalframe\node_modules\node-sass
gyp ERR! node -v v8.9.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN Error: EPERM: operation not permitted, lstat 'C:\digitalframe\node_modu
les\yargs-parser\node_modules'
npm WARN { Error: EPERM: operation not permitted, lstat 'C:\digitalframe\node_m
odules\yargs-parser\node_modules'
npm WARN stack: 'Error: EPERM: operation not permitted, lstat \'C:\\digitalfra
me\\node_modules\\yargs-parser\\node_modules\'',
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'lstat',
npm WARN path: 'C:\\digitalframe\\node_modules\\yargs-parser\\node_modules' }
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 log
ging output above.
npm ERR! A complete log of this run can be found in:
【问题讨论】:
标签: node.js reactjs npm npm-scripts