【问题标题】:npm builds with no errors but not working?npm 构建没有错误但无法正常工作?
【发布时间】:2016-12-21 11:42:55
【问题描述】:

我是 NPM 和 node.js 的新手,我尝试运行这个 MIT 项目

 https://github.com/quran/quran.com-frontend

我听从了开发者的指示

0-npm install dotenv --save
1- update the API_URL, in development.env file, from localhost to api.quran.com
2-To start the app,run  ====> npm run dev 
3- Go to http://localhost:8001 in your browser

我很少收到此警告消息

'env' is not recognized as an internal or external command, operable program or batch file. 
'env' is not recognized as an internal or external command.

但是它构建项目没有其他错误,但是当我检查本地主机地址时它不起作用,出了什么问题?

【问题讨论】:

  • 您确定第 2 点是 run npm run dev 吗?你试过npm run dev吗?
  • 是的,只是, npm run dev ,在命令行中同样的事情也不起作用ٍ @Sven 31415

标签: node.js github npm npm-install


【解决方案1】:

该项目假设您使用的是 *nix 而不是 Windows,因为它使用的不是 Windows 命令的env 命令。您将需要切换平台或向该项目的问题跟踪器提交问题,要求他们使 package.json 脚本独立于平台。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2019-03-15
    • 1970-01-01
    • 2015-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-08-24
    相关资源
    最近更新 更多