![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
node
白兔仔
所知甚少,唯善学。
展开
-
解决问题:NODE_ENV 不是内部或外部命令,也不是可运行的程序,或者批处理文件
1 环境win10+powershell 122 问题我要执行的npm script如下: (脚本的内容不需要关注,需要关注的是它的写法。)"scripts": { "build": "NODE_ENV=production webpack", "dev": "NODE_ENV=development node dev-server.js" }1234两个脚本都报...转载 2018-05-28 22:34:11 · 1700 阅读 · 0 评论 -
中小型的 Node.js 项目目录
build 构建脚本 dist 编译出来的发布版 docs 文档 examples 示例文件 src 源码 test 测试脚本 .babelrc Babel 交叉编译的配置 .eslintrc ESLint 测试配置 .gitignore 哪些文件不要上传到 GitHub .gitattributes 文件属性,如 EOL、是否为二进制等 LICENSE 授权协议 README.md 自述文件,里...原创 2018-06-24 16:56:28 · 658 阅读 · 0 评论 -
[fsevents@^1.2.2] optional install error: Package require os(darwin) not compatible with your platfo
使用cnpm install安装项目依赖的过程出现[fsevents@1.0.0]optional install error: Package require os(darwin) not compatible with your platform(win32)的警告。 这是一个可以忽略的错误,fsevents是可选的依赖,只能应用于maxOS系统,不适合Windows或者Linux。 ...原创 2018-12-05 15:18:23 · 9458 阅读 · 2 评论