警告:未经处理的水域中的总菜鸟涉水.开始.在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.
Run Code Online (Sandbox Code Playgroud)
提到了什么用途?
接下来:
Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.
Name: (portfolio)
Run Code Online (Sandbox Code Playgroud)
我键入:
npm install <portfolio> --save …Run Code Online (Sandbox Code Playgroud)