I recently update my node.js version and npm and now I am getting a error:
$ nodemon
C:\Users\username\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found;
I have tried uninstalling and reinstalling, I am pretty new to using nodemon and node. I have searched the previous questions and tried updating my Path variables but so far nothing has worked.
Have you installed nodemon globally or just installed it ? If not , try npm install -g nodemon to install it globally.
If uninstalling and then reinstalling of nodemon module did not work, please try npx nodemon script.js . I tried it in my VS Code Git Bash terminal and found it working.
Related
Since 3 days ago my nodemon wasn't able to launch from every single project folder. When trying to launch it, it displays this:
$ nodemon app.js
C:\Users\asus\AppData\Roaming\npm/node_modules/node/bin/node: line 1: This: command not found
Note that I have have updated my node to the latest version and npm was initalized. This really is blocking my developement so any help would be very much appreciated.
nodemon install globally and try
npm install -g nodemon
So I recently update node js pretty much since I was gonna try Angular but now when I try to run any command like create-react-app appname I start to get this.
C:\Users\Mine\AppData\Roaming\npm/node_modules/node/bin/node: line 1:
This: command not found
now I checked my Environmental variables and on top of my Path folder I have
C:\Users\Mine\AppData\Roaming\npm which im pretty sure is the correct
path.
I've tried to change the path to programfiles\node and it did not work as well.
i think you should after update node js uninstall create-react-app
npm uninstall create-react-app
npm uninstall -g create-react-app
npm cache clean --force
at the next
npm install -g create-react-app
Once installation successful, try running
npx create-react-app hello-world
Note
npx on the first line is not a typo — it’s a package runner tool that
comes with npm 5.2+.
I am getting this error:
I am not able to install the angular cli using npm. I am getting the "cannot find module 'json-schema'" error. I tried reinstalling the node js and npm with the latest versions. But the error didn't resolve. Please help me with this.
This issue has a fix in the link below:
https://github.com/kriszyp/json-schema/issues/29
Good Luck
I uninstalled and installed node/npm/angular-cli many times. Finally did a "where ng" on my windows pc, and found the executable was under the %appdata%\npm directory. So after uninstalling node, deleting the %appdata%\npm directory, reinstalling node, and 'npm install -g angular-cli', the ng new and ng serve commands started working.
Been at this for a couple nights now, trying to get Grunt.js to work on my mac.
I've installed Homebrew, Node.js, npm... but when I try to install grunt-cli I get an error.
Im running in my terminal: npm install -g grunt-cli
The error is -bash: npm: command not found
I've been searching forever trying to figure out what this means. I've deleted all instances of node I could find and re-installed.
When I run npm -v I get -bash: npm: command not found
What is going on? I need help.
Thank you.
UPDATE: Turns out I had to reinstall Node and make sure my file paths were correct again.
I've got a problem starting npm modules f.e. ionic, cordova, protractor. When I write something f.e.like:
ionic serve
It response with:
zsh: command not found: ionic
I installed these modules globally npm install -g ionic and locally npm install ionic, but the output is still the same. Also I tried to run them locally in directory ./node_modules/.bin/ again the same result. Another thing, that I've tried to change path of installation like here Cannot run ionic. receives "No command 'ionic' found", but didn't get the needed result. I still think, that the reason is in path, that npm installs modules, in my case it's ~/npm/bin. Thanks in advance.
Try using bash and running the same command.