###npm installするとエラーになってしまうのを解決したい
OS:CentOS6.4(vagrant)
ホストOS:Max OS 10.11.4
node v4.3.1
npm v2.14.12
最終目的はvagrantのboxを社内メンバーに配布してgulp環境で作成できる環境を作りたいと思っています。
自身の環境でvagrantのboxを作って、gulp環境までは作成しました。
別のフォルダを作ってvagrant立ち上げて元のプロジェクトフォルダからpackage.jsonをコピーしてnpm installをするとエラーになりgulpが使えません。
/vagrant/フォルダ内で動かしています。
ちなみにベースとなるプロジェクトフォルダのnode_moduleフォルダを新規のプロジェクトフォルダに移動してやると正常に動きます。
###発生している問題・エラーメッセージ
> node-sass@3.6.0 install /vagrant/test/node_modules/gulp-sass/node_modules/node-sass > node scripts/install.js /vagrant/test/node_modules/gulp-sass/node_modules/node-sass/scripts/install.js:105 mkdir(path.dir ^^^ SyntaxError: missing ) after argument list at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Function.Module.runMain (module.js:441:10) at startup (node.js:134:18) at node.js:962:3 npm ERR! Linux 2.6.32-573.22.1.el6.x86_64 npm ERR! argv "/home/vagrant/.nvm/versions/node/v4.3.1/bin/node" "/home/vagrant/.nvm/versions/node/v4.3.1/bin/npm" "install" npm ERR! node v4.3.1 npm ERR! npm v2.14.12 npm ERR! code ELIFECYCLE npm ERR! node-sass@3.6.0 install: `node scripts/install.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@3.6.0 install script 'node scripts/install.js'. npm ERR! This is most likely a problem with the node-sass package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/install.js npm ERR! You can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! /vagrant/test/npm-debug.log
###試したこと
ネットで調べて以下のコマンドでも試しましたがダメでした。
npm install --no-bin-links
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/04/30 10:09