路由node_modules / pangyp / bin / node-gyp上的节点错误

时间:2016-03-01 13:51:32

标签: javascript node.js npm

我正在尝试运行一个项目,但每当我尝试做任何事情时都会出现此错误。

我已经做过了

rm -rf node_modules

npm install npm install -g

npm update npm update -g

npm install node-sass npm rebuild node-sass

我也尝试过使用sudo命令

等等仍然得到这个输出

CRSJOPGP0223:promo-payment-reminder-text berretan$ sudo npm rebuild node-sass

> node-sass@2.1.1 install /Users/berretan/Documents/Projects/promo-payment-reminder-text/node_modules/node-sass
> node scripts/install.js


> node-sass@2.1.1 postinstall /Users/berretan/Documents/Projects/promo-payment-reminder-text/node_modules/node-sass
> node scripts/build.js

module.js:328
    throw err;
    ^

Error: Cannot find module '/Users/berretan/Documents/Projects/promo-payment-reminder-text/node_modules/node-sass/node_modules/pangyp/bin/node-gyp'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
Build failed
node-sass@2.1.1 

节点版本:4.2.6

0 个答案:

没有答案