NodeJS command "npm install express --save" raising exception - javascript

I have NodeJS installed and am trying to do this tutorial for making a NodeJS chat app: http://socket.io/get-started/chat/
I created the package.json file in it's own dedicated folder, and executed in the windows command prompt this npm command from the tutorial I linked.
npm install --save express#4.10.2
The error I receive is as follows:
Error: ENOENT, stat 'C:\Users\david\AppData\Roaming\npm'
So I wemt to the ExpressJS page, tried the command they list on their site, which is.
npm install express --save
And I receive the same error. Anyone know how to fix this, please?

Related

I installed npm on my terminal in vscode but the package.json file it created has a problem it keeps saying unable to load schema files

I installed npm on my terminal in vscode the package.json file it created for me has an error it says
Unable to load schema from 'https://json.schemastore.org/package': getaddrinfo EAI_AGAIN json.schemastore.org.(768)
I did some research and found out that it was from my vscode settings but I don't know which settings in particular
I was expecting no errors after I installed the npm package to be able to build my project with parcel

React + redux project not launching with instructions

This is my first React + Redux project, it works when I run it in my PC but when people follow my github instructions to run the project on their computers they get an error. "command not found: yarn"
Can anyone help me with this issue please? I wonder if my instructions are wrong in the first place
https://github.com/itsandromeda/Shoes-Store
If anyone gets to launch it succesfully without any errors please let me know.
Instructions:
Install dependencies
npm install
Install json server
npm install -g json-server
Run json server
json-server --watch db.json --port 3001
Launch project
yarn start
It all worked for me. I'm using node v8.9.4 and npm 5.6.0

Aurelia Babel unknown option base.modules error

I downloaded the skeleton project from the Aurelia docs and tried starting it up by using the command:
gulp watch
However, I get the following error:
[09:48:13] gulp-notify: [Error running Gulp] Error: [BABEL] <filelocation>: Unknown option: base.modules
Is there a fix for this?
did you follow the full project setup instructions on the docs page or in the project's readme.md?
Running The App
To run the app, follow these steps.
Ensure that NodeJS is installed. This provides the platform on which the build tooling runs.
From the project folder, execute the following command:
npm install
Ensure that Gulp is installed globally. If you need to install it, use the following command:
npm install -g gulp
Ensure that jspm is installed globally. If you need to install it, use the following command:
npm install -g jspm
Install the client-side dependencies with jspm:
jspm install -y
To run the app, execute the following command:
gulp watch
Browse to http://localhost:9000 to see the app. You can make changes in the code found under src and the
browser should auto-refresh itself as you save files.
I read over one step, which was the npm install command which you have to execute from the project folder. I got some errors that the CL.exe file was missing and after some Googling, I found out that was due to me not having Visual Studio 2013 not installed, which kept the utf-8 validator package from not installing.

NodeJS App npm install error

I'm following this tutorial to install NODE + EXPRESS and MongoDB http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/
I did all the stuff asked and after CMD npm install I recive the following error:
The content of bulderror.log is here http://pastebin.com/8j9YCYZG
Node-gyp require the installation of additional dependencies.
Please note the installation instructions on the pages TooTallNate/node-gyp and Error compiling bcrypt - node.js.

Error in npm for npm install selenium-webdriver

I am using Windows Server 2008 R2 EE OS. In which I have npm package manager. I am trying to run the below command to install Selenium Webdriver package.
Command:
npm install selenium-webdriver
I am receiving below error while doing it.
Error:
node.js npm should be run outside of the node repl in your normal
shell
You are running the npm command inside the node shell.
Open another shell and just type "npm install bla-bla", npm should be on the PATH. Or cd to its directory and type command.
See my command images
Doing it wrong
Doing it right
In the case of windows, sometimes it is bad to consider that the npm will create folder itself for what it required.
The best is to manually create npm folder like "C:\Users\username\AppData\Roaming\npm".
Hope this help.
By creating a folder C:/Users//AppData/Roaming/npm solved my problem.

Categories