小编Lea*_*dro的帖子

运行 npm start 时出错:nvm 与“npm_config_prefix”环境变量不兼容

我正在开发一个使用 nvm 的项目。

不知何故,我在运行“npm start”时开始出现此错误:

npm start

> sh ./bin/start.sh

nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/Users/user/.nvm/versions/node/v8.9.4"
Run `unset npm_config_prefix` to unset it.
Found '/Users/user/project/project/.nvmrc' with version <8.9.0>
nvm is not compatible with the "npm_config_prefix" environment variable: currently set to "/Users/user/.nvm/versions/node/v8.9.4"
Run `unset npm_config_prefix` to unset it.
/Users/user/project/project/node_modules/node-sass/lib/binding.js:15
      throw new Error(errors.missingBinary());
      ^

Error: Missing binding /Users/user/project/project/node_modules/node-sass/vendor/darwin-x64-59/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 9.x

Found …
Run Code Online (Sandbox Code Playgroud)

macos npm nvm

6
推荐指数
1
解决办法
5041
查看次数

标签 统计

macos ×1

npm ×1

nvm ×1