unable to run npm typings install - node.js

I want to run an existing MEAN Stack Project. The steps I am following are first I am running npm install and then npm run typings -- install because I can't see any typings folder. But I am getting these errors.
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "typings" "--" "install"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! missing script: typings
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/sami/projects/myappadmin/npm-debug.log
I am not sure how to get rid of this I spent a lot of time on google and tried different solutions but nothing worked for me.
My node version is v6.9.5. nodejs version is v4.4.7. MongoDB shell version: 3.0.9. npm 3.10.10. nvm 0.31.1 ubuntu : 15.10.

This issue exists probably because you don't have "typings" script defined in your package.json. If you want to install typings, use
npm install typings -g

why you are using typings use #types instead , read this article:
#Types

Related

npm old project doesnt install

I want to run a project written with an older version of npm in 2019. In the user manual its written that I have to run "npm insall" to install the project, but I have the new version npm 8.3.1 installed with new node version 16 and it has many errors. I tried to downgrade my npm to v4 or v3 but after when I want to install I have error:
npm ERR! Windows_NT 10.0.19044
npm ERR! argv "C:\programs\node.exe" "C:\Users\AndiaFathi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v16.14.0
npm ERR! npm v3.10.10
npm ERR! cb.apply is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! C:\wamp64\www\vocsensuimanager\npm-debug.log```
I tried to solve this error by deleting the npm and cash-npm in C:\Users\AndiaFathi\AppData\Roaming and force cleaning the cash but It will take back the npm version to 8.3.1 and again the same problem. I have also tried to find an older version of node to come directly with an older version of npm but I couldnt find the installer file. Can you pleas tell me what am I doing wrong?

why is npm giving me weird errors?

Hi I am really new to learn redux.
I was keep trying install redux in VSC.
So I typed command "npm init" first. And then I typed "npm i redux".
As a result I got those error messages.
Here is the Error
npm ERR! Linux 5.8.0-63-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "redux"
npm ERR! node v14.17.0
npm ERR! npm v3.10.10
npm ERR! cb.apply is not a function
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /home/garamsong/portfolio/practice_redux/redux_first/npm-debug.log
I checked my node version and npm version as well
node is v14.17.0
npm is v3.10.10
I thought It could be my npm version problem, so I tried delete npm.. but it didn't work..
so my question is
is it version of npm problem?
if not, what is the problem?
and how to install redux?
Thanks for reading my stupid question.. but this made me really frustrated..(btw sudo doesn't work at all) 😥

Getting Error when trying to install browser-sync ubuntu

Node is Updated to latest stable version v7.4.0
This is the error message I get when trying to install browser-sync:
sudo npm install -g browser-sync
'npm ERR! Linux 4.4.0-59-generic npm ERR! argv "/usr/local/bin/node"
"/usr/local/bin/npm" "install" "-g" "browser-sync" npm ERR! node
v7.4.0 npm ERR! npm v4.0.5 npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module 'internal/fs' npm ERR! npm ERR! If you
need help, you may report this error at: npm ERR!
https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! /home/pedro/npm-debug.log '
This problem occurs when you are installing a old module(as written in your package.json) but it is not available on git due to update in their version.
for solving this issue.
1.Need to install the project’s local dependencies (that’s where it’s looking for browser-sync). To do that,
2.cd into the project directory and run npm install.
3.You can also try npm i browser-sync --save
You're going to need to upgrade npm also (currently npm#next – npm -g install npm#next if you have it installed globally.
I have Solved the issue:
NPM Module was not supported by node v7:
So I downgraded to node v6.4.0 and it allowed me install browser-sync with no problems!
sudo npm cache clean -f
sudo npm install -g n
sudo n 6.9.5

npm install - Error: No compatible version found: cherrio#'^0.17.0' - manual install then loop of package install

I'm trying to get into a legacy program, which doesn't have any other developers remaining that worked on it over a year ago.
The readme says to install via npm install. When I ran that, it complained about the version of node and suggested node 0.8.x. Based on that I used nvm install 0.8.9 then did nvm use 0.8.9.
When I run npm install, I now get:
npm ERR! Error: No compatible version found: cheerio#'^0.17.0'
npm ERR! Valid install targets:
npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.2.0","0.2.1","0.2.2","0.3.0","0.3.1","0.3.2","0.4.0","0.4.1","0.4.2","0.5.0","0.5.1","0.5.2","0.6.0","0.6.1","0.6.2","0.7.0","0.8.0","0.8.1","0.8.2","0.8.3","0.9.0","0.9.1","0.9.2","0.10.0","0.10.1","0.10.2","0.10.3","0.10.4","0.10.5","0.10.6","0.10.7","0.10.8","0.11.0","0.12.0","0.12.1","0.12.2","0.12.3","0.12.4","0.13.0","0.13.1","0.14.0","0.15.0","0.16.0","0.17.0","0.18.0","0.19.0","0.20.0"]
npm ERR! at installTargetsError (~/.nvm/v0.8.9/lib/node_modules/npm/lib/cache.js:553:10)
npm ERR! at ~/.nvm/v0.8.9/lib/node_modules/npm/lib/cache.js:477:15
npm ERR! at saved (~/.nvm/v0.8.9/lib/node_modules/npm/node_modules/npm-registry-client/lib/get.js:138:7)
npm ERR! at ~/.nvm/v0.8.9/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:220:7
npm ERR! at Object.oncomplete (fs.js:297:15)
npm ERR! If you need help, you may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <npm-#googlegroups.com>
npm ERR! System Darwin 14.5.0
npm ERR! command "~/.nvm/v0.8.9/bin/node" "~/.nvm/v0.8.9/bin/npm" "install"
npm ERR! cwd ~/workspace/path/to/project
npm ERR! node -v v0.8.9
npm ERR! npm -v 1.1.61
What bothers me is the fact that it references ^0.17.0 and from reading, it sounds like that should support any 0.x.y version that is 0.17.0 or greater. Since 0.17.0, 0.18.0, 0.19.0 and 0.20.0 are in the list, I would assume that things should be just peachy.
If I do node install cheerio#0.17.0 then it seems to work, I then do another npm install and get a new package error like the above, I then manually do the version and it seems to loop back to the cheerio package.
Thoughts on what I'm missing?
Did you get '^0.17.0' from json? To work in cmd just remove apostrophe's.
npm install cheerio#^0.17.0

Cannot install node packages using npm

While installing any node package using npm, I am getting the following error:
C:\Users\460785>npm install express -g npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program
Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "express"
"-g" npm ERR! node v6.2.1 npm ERR! npm v3.9.3 npm ERR! code
MODULE_NOT_FOUND
npm ERR! Cannot find module 'github-url-from-git' npm ERR! npm ERR! If
you need help, you may report this error at: npm ERR!
https://github.com/npm/npm/issues
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\460785\npm-debug.log
I have tried to reinstall node.js again and again, one with stable version and also the latest version. Still, I am getting the same error.
It seems like multiple persons on github had a similiar problem.
As the user GregWoods stated there you might want to uninstall node.js completly and delete all remaining files in your Program Files Folder and then install again.

Resources