The server starts up, but in the browser it simply writes Loading ... and that's it. There are 404 errors in the console when starting gulp default :

 Error: ENOENT: no such file or directory, scandir '/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/vendor' at Object.fs.readdirSync (fs.js:870:18) at Object.getInstalledBinaries (/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/lib/extensions.js:121:13) at foundBinariesList (/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/lib/errors.js:20:15) at foundBinaries (/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/lib/errors.js:15:5) at Object.module.exports.missingBinary (/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/lib/errors.js:45:5) at module.exports (/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/lib/binding.js:15:30) at Object.<anonymous> (/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/lib/index.js:14:35) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:488:32) 

In short, node-sass is not set . When trying to install via sudo npm install node-sass :

 gyp ERR! configure error gyp ERR! stack Error: EACCES: permission denied, mkdir '/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass/build' gyp ERR! System Linux 3.13.0-106-generic gyp ERR! command "/usr/local/bin/node" "/mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library=" gyp ERR! cwd /mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/node_modules/node-sass gyp ERR! node -v v7.2.1 gyp ERR! node-gyp -v v3.4.0 gyp ERR! not ok Build failed with error code: 1 npm ERR! Linux 3.13.0-106-generic npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-sass" npm ERR! node v7.2.1 npm ERR! npm v2.15.11 npm ERR! code ELIFECYCLE npm ERR! node-sass@4.1.1 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the node-sass@4.1.1 postinstall script 'node scripts/build.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/build.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 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! /mnt/PROJECTS/[3]_PROCOM/[8]_POKAZATOR/WIP/front/npm-debug.log 

He says that he, like, lacks admin rights, although it is set from sudo and the rights of the folder are given through sudo chmod 777 -R ...

There is the same problem with the phone-cat project, the bower components are not installed there.

 Linux Ubuntu 14.04 LTS npm v2.15.11 nodejs v7.2.1 

Questions:

  1. How in any other way (not through the terminal) to put node-sass ?

  2. How to put bower components?

  3. Why do such problems arise?

  • how did you install nodejs? in which directory do you run npm install ? - Mikhail Vaysman
  • Ubuntu has been registered to another package. Follow the official NodeJS docs to install NodeJS so that #! / Usr / bin / env node resolved. - Ada King
  • npm install runs at the root, where packages.json is - Ada King
  • How to install nodejs I do not remember, differently, then I updated it again ... - Ada King

0