npm init is the command used to create a package.json for new modules.
Questions tagged [npm-init]
49 questions
0
votes
0 answers
How can i build ABS modeling language project using tree sitter?
I want to build an abs modeling language project using tree-sitter but i don't know how and from where to begin. Can anybody help me to solve this problem?
By the way the cargo and a C++ compiler are installed on computer.
The cargo was installed…

Yaser
- 11
- 1
0
votes
1 answer
Is `npm init ` same as `npx `?
The npm-init documentation says npm init is the same as npx :
npm init (same as `npx )
Is that correct? (Ignore the documentation's missing backtick typo.)
If it is correct, why aren't the…

Robin A. Meade
- 1,946
- 18
- 17
0
votes
1 answer
Npm init/install doesn't work; Error number -4058
I've not been using node for a little bit ~1-2 months. It used to work fine before and yet even though I haven't updated anything etc. I can't do npm init.
I try to init npm LTS(16). However I get the following error
(init without -y doesn't work…

Anton Wojtas
- 18
- 4
0
votes
1 answer
NPM install not work and make lock-json file
Hi I'm trying to install npm to run a kit.
my node version is: v12.18.3
my npm version is: 6.14.6
my folder is "test" and I'm installing npm with this command:
Kian@DESKTOP-CL16DA7 MINGW64 /d/markitdone/test
$ npm install
npm WARN saveError ENOENT:…

y sh
- 21
- 3
0
votes
1 answer
What is the proper way of using npm in root environment?
I'm currently setting up a Parse Server with AWS EC2 instance, where I've been using Nginx and Elastic IP to manage SSL certificates.
Through different guides I've reached the solution of put the node app at /var/www/parse-server, but they say I…

Wladimir
- 5
- 5
0
votes
1 answer
I'm getting an error when installing Vue.js 3 on Chrome OS
I'm trying to use Vue.js 3 on Chrome OS (64-bit, v99) using code-server, using the official Vue installation guide, but when I run npm init vue@latest I get the following error:
user@penguin ~/vue-project> npm init…

cormbok
- 1
0
votes
2 answers
I am having npm version 8.1.2 but I want to install npm version 5.5.1
Currently , I am having npm version 8 but I want to have npm 5.5.1 ,
Last time also I did npm i -g@5.5.1 this but I struggled through the module not found error , and finally I resolved but now I want to install lower version i.e 5.5.1 , please tell…

MaNav MaLhoTra
- 19
- 7
0
votes
1 answer
When I run npm init, the package name is always scoped with my organization name by default. How to change this?
When I run "npm init" the package name always starts from @hackstrap/..., by default. Instead when I run the command package name should be "webpack-demo". How can I make this happen?

Abhi N
- 13
- 4
0
votes
1 answer
npm init doesn't work, ENOENT: no such file or directory
I install node 14(LTS) on my window10, and npm is auto install, but npm init isn't work.
I check version of them is work
C:\Users\RURU\Documents\practice\css> node -v
// 14.4
C:\Users\RURU\Documents\practice\css> npm -v
// 6
but, npm init does't…

RU1007
- 3
- 5
0
votes
0 answers
npm init doesn't get all packages in node_modules folder
I have a project with a node_modules folder. Something unexpected happened and i had to delete my package.json and package-lock.json files.
Now i need to get my project's packages and dependencies etc.. into a new package.json file.
Unfortunately,…

ImportError
- 358
- 5
- 17
0
votes
1 answer
difference between npm init and npm init --yes
I am new at node.js and don't quite understand what's the difference between
npm init and npm init --yes.
Could you help me out?
Thanks.

Hakob Arshakyan
- 3
- 2
0
votes
1 answer
How do you run electronjs via npx instead of npm start?
I am trying to make an npm initializer with electronjs. According to the npm documentation, to make an initializer, your script needs to be started with npx.
Electronjs scripts require that they be started with the electron command and not the node…

DaMaxContent
- 150
- 1
- 13
0
votes
1 answer
npm creating package.json in wrong location
I'm following this tutorial to create a package.json file.
I navigate to my project and and run npm init but it always creates the package.json in a different location than where I navigated.
H:\>cd C:/Github/my_project/Styleguide/
H:\>npm init…

L.Cora
- 13
- 5
0
votes
0 answers
How can I run curl and prompt for a password when running from npm?
I'm working on a Node.js file to automatically create a new Github repo.
When I run curl -u 'BretCameron' https://api.github.com/user/repos -d '{"name":"test_repo"}' in the terminal, it asks me for my GitHub password and then creates the new…

Bret Cameron
- 451
- 1
- 4
- 18
0
votes
0 answers
Installing npm packages
Is there a way to install Gulp globally without access to the network? I have the nuget package installed but don't know how to achieve the same effect of running npm install --global Gulp with this.
Do I even need to run this? Or adding the nuget…
user5326354