Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
49
rated 0 times [  53] [ 4]  / answers: 1 / hits: 5506  / 3 Years ago, sun, december 27, 2020, 12:00:00

I was watching a tutorial on sass and I got stuck in this part , im not familiar with npm,nodejs and stuff so idk what i should do !? can u take a look and see why i cant install node-sass?


PS D:NODE-SASS> npm install node-sass
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "node-sass" under anpm ERR! also called "node-sass". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

npm ERR! A complete log of this run can be found in:
npm ERR! C:bla blabla_25_42_696Z-debug.log
PS D:NODE-SASS> npm install node-sass
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "node-sass" under a package
npm ERR! also called "node-sass". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>

npm ERR! A complete log of this run can be found in:
npm ERR! c:/bla bla bla

More From » node.js

 Answers
6

This text clearly states that you gave the same name to your project in package.json as the name of this package.



also called "node-sass". Did you name your project the same
npm ERR! as the dependency you're installing?



Rename your project in package.json and maybe a folder itself not to confuse it with this package


[#2051] Monday, December 21, 2020, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
mackennamelissac

Total Points: 110
Total Questions: 118
Total Answers: 103

Location: Sweden
Member since Sun, Jan 16, 2022
2 Years ago
mackennamelissac questions
;