![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
npm
jiuweiC
这个作者很懒,什么都没留下…
展开
-
node 基于mac安装
查看并下载的node版本brew info nodebrew install node下载的node自带npm和npx问题:➜ ~ npx create-react-app my-appnpm ERR! code ERR_INVALID_URLnpm ERR! Invalid URLnpm ERR! A complete log of this run can be found in:执行 sudo npx create-react-app my-app,可能是权限问题...原创 2021-12-29 01:39:26 · 570 阅读 · 0 评论 -
npx使用
npx起源: npm5.2 之后又添加了一个新的工具 npx 用来执行 npm 二进制执行文件,即用于执行项目内安装的模块原理: 运行的时候,会到node_modules/.bin路径和环境变量$PATH里面,检查命令是否存在。由于 npx 会检查环境变量$PATH,所以系统命令也可以调用。使用方法:例如:项目内部安装了测试工具 Mocha。$ npm install -D mo...原创 2019-07-04 09:27:49 · 734 阅读 · 0 评论 -
npm使用
指令npm --version##1.初始化Generate it without having it ask any questions:即初始化过程无论回答什么问题都是yes$ npm init -y2.npm script参考:http://www.ruanyifeng.com/blog/2016/10/npm_scripts.html2.1使用方式npm 允许在pac...原创 2019-07-04 09:29:50 · 188 阅读 · 0 评论