質問
vagrant 上で
$ npm install node-sass
とすると、
> node-sass@4.5.0 install /var/www/html/node_modules/node-sass > node scripts/install.js sh: node: コマンドが見つかりません ・・(略)・・ npm ERR! argv "/root/.nodebrew/node/v6.10.0/bin/node" "/root/.nodebrew/current/bin/npm" "install" "node-sass" npm ERR! node v6.10.0 npm ERR! npm v3.10.10 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! node-sass@4.5.0 install: `node scripts/install.js` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the node-sass@4.5.0 install script 'node scripts/install.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, 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 information on how to open an issue for this project with: npm ERR! npm bugs node-sass npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls node-sass npm ERR! There is likely additional logging output above. ・・(略)・・
というエラーが出てインストールできません。
どなたか解決方法をご教授ください。
環境
$ cat /etc/redhat-release CentOS Linux release 7.3.1611 (Core) $ node -p process.versions { http_parser: '2.7.0', node: '6.10.0', v8: '5.1.281.93', uv: '1.9.1', zlib: '1.2.8', ares: '1.10.1-DEV', icu: '58.2', modules: '48', openssl: '1.0.2k' } $ which node /root/.nodebrew/current/bin/node $ which npm /root/.nodebrew/current/bin/npm $ cat ~/.bashrc # .bashrc ・・(略)・・ export PATH=$HOME/.nodebrew/current/bin:$PATH
よろしくおねがいしますm(_ _)m

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。