Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't run npm install #21

Open
ChenJianHong2025 opened this issue Nov 29, 2021 · 10 comments
Open

can't run npm install #21

ChenJianHong2025 opened this issue Nov 29, 2021 · 10 comments

Comments

@ChenJianHong2025
Copy link

ChenJianHong2025 commented Nov 29, 2021

After I download the latest code and run npm install. Dependency error appears.

npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module './build-ideal-tree.js'
npm ERR! Require stack:
npm ERR! - /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/index.js
npm ERR! - /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/index.js
npm ERR! - /usr/local/lib/node_modules/npm/node_modules/libnpmfund/index.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/utils/reify-output.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/utils/reify-finish.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/install.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/npm.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/cli.js
npm ERR! - /usr/local/lib/node_modules/npm/bin/npm-cli.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/robin_chen/.npm/_logs/2021-11-29T09_00_53_614Z-debug.log

I am not sure if you miss the build-ideal-tree.js file.

@sharontao0420
Copy link

After I download the latest code and run npm install. Dependency error appears.

npm ERR! code MODULE_NOT_FOUND
npm ERR! Cannot find module './build-ideal-tree.js'
npm ERR! Require stack:
npm ERR! - /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/index.js
npm ERR! - /usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/index.js
npm ERR! - /usr/local/lib/node_modules/npm/node_modules/libnpmfund/index.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/utils/reify-output.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/utils/reify-finish.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/install.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/npm.js
npm ERR! - /usr/local/lib/node_modules/npm/lib/cli.js
npm ERR! - /usr/local/lib/node_modules/npm/bin/npm-cli.js

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/robin_chen/.npm/_logs/2021-11-29T09_00_53_614Z-debug.log

I am not sure if you miss the build-ideal-tree.js file.

Did you run npm install in your text editor such as vs code after opening the exercising files? I ran npm install successfully.

@dellstewart
Copy link

I couldn't get the npm to install. Vs code
zsh: command not found: npm

@unicornrose
Copy link

unicornrose commented Aug 4, 2022 via email

@rowlandNumbers
Copy link

Try googling the error code and testing out the different solutions. I also had the same issue on two different computers and trial and error worked for me.

@ptlmlk83
Copy link

ptlmlk83 commented Jan 6, 2023

Same issue not able to install npm.

PS C:\Users\ptlml\Downloads\javascript-essential-training-2832077-main\javascript-essential-training-2832077-main> npn install
npn : The term 'npn' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1

  • npn install
  •   + CategoryInfo          : ObjectNotFound: (npn:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

PS C:\Users\ptlml\Downloads\javascript-essential-training-2832077-main\javascript-essential-training-2832077-main>

@Ese-Miami05
Copy link

Visual Studio Code must be "Run as Administrator" for working Terminal Commands.

@shivam-jha2712
Copy link

For all of you guys, I guess if you would download the package and packagelock.json that is to the last of the repo. And then Once you run the command for npm install. It would install the node modules

@ShadowKon
Copy link

I had the same issue when I moved into my laptop. I forgot to install the prerequisites since I already had some other things installed (GitBash, puTTY, etc.). Make sure you install Node.JS first and then run "npm install" in the terminal in VS Code. Hope this helps someone.

@mkaymkay
Copy link

the instructor says that you probably already have node.js installed if you have a Mac. This doesn't seem to be the case on my new MacBook. in your computer terminal, you can type the command node -v to see what version of node you have installed. mine found nothing initially, so I went to the node.js site and downloaded it. after that, the npm install worked. after running it, I had to run the command npm audit fix to fix some things that didn't seem to work initially.

@khatriaadarsh
Copy link

khatriaadarsh commented May 4, 2024

In many case the version of need's latest version of node.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests