StamusNetworks / scirius

Scirius is a web application for Suricata ruleset management and threat hunting.
GNU General Public License v3.0
626 stars 150 forks source link

error with NPM #134

Open fratou77 opened 6 years ago

fratou77 commented 6 years ago

Hello,

When I install the latest NPM version (sudo npm install -g npm@latest) and next I want to install webpack (sudo npm install -g webpack@3.11), I have this error :
/usr/bin/env: node: No file or folder of this type

To fix that, you have to create a symbolic link with the command sudo ln -s /usr/bin/nodejs /usr/bin/node but the nodejs-legacy package is supposed to solve the problem. And I tried both solutions but when I want to install the webpack, I get the same error :

/usr/local/lib/node_modules/npm/bin/npm-cli.js:79 let notifier = require('update-notifier')({pkg}) ^^^^^^^^ SyntaxError: Unexpected identifier at Module._compile (module.js:439:25) at Object.Module._extensions..js (module.js:474:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Function.Module.runMain (module.js:497:10) at startup (node.js:119:16) at node.js:906:3

Anyone has found a solution for this problem please ?

south-devel commented 6 years ago

https://stackoverflow.com/questions/21168141/cannot-install-packages-using-node-package-manager-in-ubuntu

basharabdullah commented 5 years ago

@fratou77 have you managed to solve this problem?

pevma commented 5 years ago

I think the docs were also updated to refelct any changes needed.

stoyan-atanasoff commented 5 years ago

Hey @fratou77, I think you have broken your npm. Take a look here how to recover it. Also please share your versions of npm and nodejs.