Questions tagged [npm-init]

npm init is the command used to create a package.json for new modules.

Reference:

49 questions
2
votes
3 answers

How do I change directory to deployment-archive to run gulp?

I am using aws code deploy to deploy a nodejs server to an ec2 instance. aws code deploy agent downloads bundle to following path: /opt/codedeploy-agent/deployment-root/deployment-group-id/deployment-id/deployment-archive/gulpfile.js which means my…
ishandutta2007
  • 16,676
  • 16
  • 93
  • 129
1
vote
1 answer

'npm-run-all' is not recognized as an internal or external command, operable program or batch file

#Command : npm run dist #Bootstrap Command #Error: 'npm-run-all' is not recognized as an internal or external command, operable program or batch file. Installed Node.js along with chocolatey. Everything added to path. Running this code on VS CODE…
1
vote
2 answers

npm init will not create package.json file

test directory is empty and running npm init doesn't create a package.json file. error below says there's no such directory which is confusing as I'm in said directory when running npm init command. PS C:\Users\Sayee\OneDrive\Documents\test> npm…
SyM
  • 35
  • 8
1
vote
0 answers

Can an npm package specify that npx/npm init should always use the latest version?

I have a package (let's call it create-foo) that my users are supposed to always run using npm init foo. The problem is that if the user has previously run the command it never updates it. I know that the user can run npm init foo@latest but is…
ascorbic
  • 36
  • 3
1
vote
1 answer

Stenciljs error while project initialization

I am trying to create a new stenciljs project using the provided command npm init stencil After running the above command, i get this error Can someone please help me to find out what exactly is going wrong. One observation is that after running…
Rohan Kangale
  • 931
  • 4
  • 11
  • 29
1
vote
0 answers

Problems creating Node's package.json file in Vs code

node package.json error message Problems loading reference "https://schemastore.azurewebsites.net/schemas/json/package.json": Unable to load schema from "https://schemastore.azurewebsites.net/schemas/json/package.json":getaddrinfo ENOTFOUND…
Xxcel
  • 11
  • 2
1
vote
0 answers

How to fix "Couldn't find an alternative telinit implementation to spawn." when trying to npm init in ubuntu

I'm trying to run $ npm init in Ubuntu on my windows computer in order to create the package.json file. However, I keep getting the same error when I try to run it (node.js v8.10.0): Couldn't find an alternative telinit implementation to…
Mr. Mechanic
  • 11
  • 1
  • 4
1
vote
2 answers

Creating json file inside a specific directory using terminal

I'm trying to create my Starter Pack Setup and I need to install NPM dependencies. I should create a json file in: /Users/matteomattiussi/Documents/Udemy/Bootstrap/bs4projects/bs4starter but I don't know how do it because I always getting the json…
Matteo Mattiussi
  • 11
  • 1
  • 1
  • 3
1
vote
1 answer

Difference between npm configuration commands

Are npm config set and npm set synonymous? Configuration of npm init with both of this commands, add init configuration to /home/.npmrc npm config set init.author.name 'Some One' npm set init.author.email 'some@one.com
hayordi
  • 119
  • 1
  • 8
1
vote
2 answers

How to create node project using npm init? Getting stuck at version

I am a newbie of nodejs, I am trying to a create node js project using npm init command but it stops at version. Can someone please help? Below is error: Press ^C at any time to quit. name: (node_init) version: (1.0.0)
KD.
  • 43
  • 7
1
vote
1 answer

Git bash stuck on 'Is this okay? (yes)'

Every time I do npm init and hit enter until the question 'Is this okay? (yes)' pops out on which I answer 'yes', Git Bash gets stuck. This means that I can write anything, hit enter and all I get is a newline. By the way, a new package.json file is…
escplat12
  • 2,191
  • 4
  • 22
  • 34
1
vote
1 answer

Installing NPM - missing script: start

I'm currently having problems starting NPM. I've installed along with Node.JS. When I Run 'npm start' via Command Prompt I recieve the following ... C:\Users\bobbyy>npm start npm ERR! missing script: start npm ERR! A complete log of this run can be…
ClarkySmiverz77
  • 203
  • 1
  • 4
  • 13
1
vote
1 answer

npm package.json formatted in one line

I have this issue, and whenever I do npm init the file package.json is created, but it is formatted in one line. As you can imagine this is not practical to work with and I end up formatting it myself, which is not the best task in the world. EDIT I…
Daniel Reina
  • 5,764
  • 1
  • 37
  • 50
0
votes
0 answers

How do I fix React Native npm react-native init issue?

I write npm react-native init newApp but it returns a problem in this form.I downloaded the metro package (npm i metro) but it didn't fix the problem.Could this problem be due to missing any packages? Error: Cannot find module…