npm installation error on windows


(muhammad shoaib) #1

npm installed but npm run dev giving me error like that
npm ERR! Failed at the @ development script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\shobi\AppData\Roaming\npm-cache_logs\2019-02-17T09_51_26_003Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @ watch: npm run development -- --watch
npm ERR! Exit status 1


(John Gee) #2

This error suggests you have not run npm install in the project:

npm WARN Local package.json exists, but node_modules missing, did you mean to install?

After you have cloned an npm based project, you usually run npm install in the root folder to install all the dependencies, before you run any scripts. e.g.

git clone https://github.com/JohnRGee/forest-arborist.git
cd forest-arborist
npm install
npm run test

(system) closed #3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.