You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
D:\myapp>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See npm help json for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg> --save afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
name: (myapp) myapp
version: (1.0.0)
description: "my first test app"
entry point: (index.js)
test command:
git repository:
keywords:
author: naaptol
license: (ISC)
About to write to D:\myapp\package.json:
{
"name": "myapp",
"version": "1.0.0",
"description": ""my first test app"",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "naaptol",
"license": "ISC"
}
D:\myapp>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.
See
npm help json
for definitive documentation on these fieldsand exactly what they do.
Use
npm install <pkg> --save
afterwards to install a package andsave it as a dependency in the package.json file.
Press ^C at any time to quit.
name: (myapp) myapp
version: (1.0.0)
description: "my first test app"
entry point: (index.js)
test command:
git repository:
keywords:
author: naaptol
license: (ISC)
About to write to D:\myapp\package.json:
{
"name": "myapp",
"version": "1.0.0",
"description": ""my first test app"",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "naaptol",
"license": "ISC"
}
Is this ok? (yes) yes
D:\myapp>npm install express
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm ERR! Windows_NT 6.1.7600
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs
node_modules\npm\bin\npm-cli.js" "install" "express"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code EPROTO
npm ERR! errno EPROTO
npm ERR! syscall write
npm ERR! write EPROTO
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! D:\myapp\npm-debug.log
The text was updated successfully, but these errors were encountered: