相关疑难解决方法(0)

吉普 错误!堆栈错误:命令失败:python -c import sys; 打印“%s.%s.%s”% sys.version_info[:3]

我正在尝试在 Vue 项目中进行 npm install,即使我只是运行 vue create (name) 它也会给我这个错误:

npm ERR! gyp verb check python checking for Python executable "c:\Python310\python.exe" in the PATH
npm ERR! gyp verb `which` succeeded c:\Python310\python.exe c:\Python310\python.exe
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Command failed: c:\Python310\python.exe -c import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack   File "<string>", line 1
npm ERR! gyp ERR! stack     import sys; print "%s.%s.%s" % sys.version_info[:3];
npm ERR! gyp ERR! stack                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
npm …
Run Code Online (Sandbox Code Playgroud)

python npm vue.js npm-install

10
推荐指数
2
解决办法
2万
查看次数

如何在 MacOSX M1 上安装 node-sass?

当尝试在我的 M1 MacBook 上执行操作时,我遇到了 node-sass 错误yarn

我有这个错误:

error /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/node_modules/node-sass: Command failed.
Exit code: 1
Command: node scripts/build.js
Arguments:
Directory: /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/node_modules/node-sass
Output:
Building: /opt/homebrew/Cellar/node/17.8.0/bin/node /Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/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   '/opt/homebrew/Cellar/node/17.8.0/bin/node',
gyp verb cli   '/Users/antoinekurka/Documents/Freelance/Projets/NL/NextLevel/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 …
Run Code Online (Sandbox Code Playgroud)

node.js npm node-sass

4
推荐指数
2
解决办法
1万
查看次数

标签 统计

npm ×2

node-sass ×1

node.js ×1

npm-install ×1

python ×1

vue.js ×1