Running this command was my mistake.
npm config set prefix /usr/local
Path /usr/local
is not for windows. This command changed the prefix variable at 'C:\Program Files (x86)\Git\local'
To access and make a change to this directory I need to run my cmd as administrator.
So I did:
- Run cmd as administrator
- Run
npm config edit
(You will get notepad editor) - Change
prefix
variable toC:\Users\<User Name>\AppData\Roaming\npm
Then npm start
works in a normal console.
Related Posts:
- Cannot find module ‘internal/fs’ after upgrading to node 7
- How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)
- NPM ELIFECYCLE error – using node server.js command
- Node.js – SyntaxError: Unexpected token import
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- Node.js – SyntaxError: Unexpected token import
- Node.js Port 3000 already in use but it actually isn’t?
- How to use npm jquery module?
- Node update a specific package
- npm WARN enoent ENOENT: no such file or directory, open ‘C:\Users\Nuwanst\package.json’
- Maximum call stack size exceeded on npm install
- NPM install fails with node-gyp
- events.js: 141 throw er; // Unhandled ‘error’ event
- What is the difference between Bower and npm?
- How to make a discord bot create an invite for every server it joins?
- map function for objects (instead of arrays)
- How to solve npm error “npm ERR! code ELIFECYCLE”
- Start script missing error when running npm start
- How to solve npm error “npm ERR! code ELIFECYCLE”
- How to you store data for each discord user in the discord server?
- Babel 6 regeneratorRuntime is not defined
- TypeError: Converting circular structure to JSON in nodejs
- Babel 7 – ReferenceError: regeneratorRuntime is not defined
- Error: Can’t set headers after they are sent to the client
- require is not defined? Node.js
- Client on Node.js: Uncaught ReferenceError: require is not defined
- TypeError: Router.use() requires middleware function but got a Object
- Cannot GET / Nodejs Error
- What is NODE_ENV and how to use it in Express?
- Node.js heap out of memory
- Reactjs – Form input validation
- await is only valid in async function
- How to set NODE_ENV to production/development in OS X
- await is only valid in async function
- Heroku: “No default language could be detected for this app” error thrown for node app
- TypeError: Router.use() requires middleware function but got a Object
- What does “res.render” do, and what does the html file look like?
- How to obtain username from Promise
? - how to render a react component using ReactDOM Render
- ‘react-scripts’ is not recognized as an internal or external command
- webpack: Module not found: Error: Can’t resolve (with relative path)
- What’s the source of Error: getaddrinfo EAI_AGAIN?
- stop all instances of node.js server
- Using Node.js require vs. ES6 import/export
- ReferenceError : window is not defined at object.
Node.js - Unable to verify leaf signature
- keep getting “? Something is already running on port 3000” when I do npm start on react app
- AJAX response error: net::ERR_EMPTY_RESPONSE
- Express Render not working return error: No default engine was specified and no extension was provided
- Node.js Error: connect ECONNREFUSED
- TypeError: app.use() requires middleware functions
- No overload matches this call. Type ‘string’ is not assignable to type ‘Signals’
- Node.js document is not defined
- How to handle ETIMEDOUT error?
- XMLHttpRequest module not defined/found
- Express error – TypeError: Router.use() requires middleware function but got a Object
- Expressjs / Node.js – res.redirect() not loading page
- Using async/await with a forEach loop
- npm – “Can’t find Python executable “python”, you can set the PYTHON env variable.”
- Why is my asynchronous function returning Promise {
} instead of a value? - NodeJs : TypeError: require(…) is not a function
- What is the difference between node.js and io.js?
- module.exports vs exports in Node.js
- npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself
- Basic Ajax send/receive with node.js
- Npm install cannot find module ‘semver’
- How to download a file with Node.js (without using third-party libraries)?
- Make Axios send cookies in its requests automatically
- How do I remove documents using Node.js Mongoose?
- node-request – Getting error “SSL23_GET_SERVER_HELLO:unknown protocol”
- Bower: ENOGIT Git is not installed or not in the PATH
- Why does JSHint throw a warning if I am using const?
- How to fix Cannot find module ‘typescript’ in Angular 4?
- Difference between “module.exports” and “exports” in the CommonJs Module System
- Error: ENOENT: no such file or directory, stat ‘/public/main.html’ at Error (native)
- Local package.json exists, but node_modules missing
- How do I fix the npm UNMET PEER DEPENDENCY warning?
- How to access the request body when POSTing using Node.js and Express?
- TypeError: res.json is not a function
- SyntaxError: expected expression, got ‘<'
- Eslint: How to disable “unexpected console statement” in Node.js?
- how to use react require syntax?
- How can I use webpack with express?
- How to fix Error: listen EADDRINUSE while using NodeJS?
- How to sort in mongoose?
- How to format a UTC date as a `YYYY-MM-DD hh:mm:ss` string using NodeJS?
- npm install with error: `gyp` failed with exit code: 1
- How to convert binary string to decimal?
- How to disable auto-start of “Node.js: Server-side JavaScript” when using Adobe Dreamweaver?
- How to disable auto-start of “Node.js: Server-side JavaScript” when using Adobe Dreamweaver?
- Write / add data in JSON file using Node.js
- Make Discord bot send picture with message with NodeJS
- What does `node –harmony` do?
- “React.Children.only expected to receive a single React element child” error when putting
and in a - How do I install Angular 2 using NPM?
- How to fix “TypeError: Right-hand side of ‘instanceof’ is not callable” when I use another module class?
- Error: Couldn’t find preset “es2015” relative to directory “/Users/username”
- Using Angular 2 without TypeScript Transpiler
- how to add inside a text box?
- DeprecationWarning: Calling an asynchronous function without callback is deprecated. – how to find where the “function:” is?