【发布时间】:2017-02-03 03:18:40
【问题描述】:
警告:新手在未知水域涉水。开始。在 Mac 终端中:
package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.
Please include the following file with any support request:
npm ERR! /Users/stickupartist/portfolio/npm-debug.log
stickup-artists-macbook-pro:portfolio stickupartist$ npm init
This utility will walk you through creating a package.json file.
指的是什么实用程序?
接下来:
Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.
Name: (portfolio)
我输入:
npm install <portfolio> --save
终端打印出来:
Sorry, name can only contain URL-friendly characters.
我的命名有什么问题?我正在使用 Meteor、Mac OSX 在我的本地机器上工作
谢谢!
【问题讨论】:
标签: json node.js npm npm-install