以下状态显示在我的视觉工作室中 我是node.js的新手...有关整个组件安装的任何人帮助.... 有关从node.js开始通过vs2012
的有用教程答案 0 :(得分:1)
正确安装NPM。并确保列出的这些版本位于package.json
中Try This:
C:\Anthony\Demo\ExpressApp1\ExpressApp1>npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sane 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: (ExpressApp1)
version: (0.0.0)
description:
entry point: (app.js)
test command:
git repository:
keywords:
author:
license: (ISC)
About to write to C:\Anthony\Demo\ExpressApp1\ExpressApp1\package.json:
{
"name": "ExpressApp1",
"version": "0.0.0",
"description": "",
"main": "app.js",
"dependencies": {
"express": "~3.4.4",
"jade": "~1.1.5",
"stylus": "~0.42.2"
},
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"