小编Yho*_*omi的帖子

Npm 脚本失败 - '.' 不被识别为内部或外部命令

这是错误日志

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! cloudenly-hr-microservice@1.0.0 prestart: `sequelize db:migrate  && ./node_modules/.bin/sequelize db:seed:all`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the cloudenly-hr-microservice@1.0.0 prestart script.
Run Code Online (Sandbox Code Playgroud)

这是脚本

    "lint": "eslint",
    "test": "export NODE_ENV=test && mocha --timeout 100000",
    "prestart": "./node_modules/.bin/sequelize db:migrate  && ./node_modules/.bin/sequelize db:seed:all",
    "start": "./node_modules/pm2/bin/pm2 start pm2server.config.js",
    "poststart": "./node_modules/pm2/bin/pm2 log HumanR" 
Run Code Online (Sandbox Code Playgroud)

node.js npm

3
推荐指数
1
解决办法
3026
查看次数

标签 统计

node.js ×1

npm ×1