小编Rit*_*pta的帖子

无法启动 nodejs 应用程序-错误:需要 npm.load()

每当我启动我的 Node 应用程序时,它都会出现以下错误。

Error: Failed to replace env in config: ${NPM_TOKEN}
at /usr/local/lib/node_modules/npm/lib/config/core.js:429:13
at String.replace (native)
at envReplace (/usr/local/lib/node_modules/npm/lib/config/core.js:424:12)
at parseField (/usr/local/lib/node_modules/npm/lib/config/core.js:400:7)
at /usr/local/lib/node_modules/npm/lib/config/core.js:338:17
at Array.forEach (native)
at Conf.add (/usr/local/lib/node_modules/npm/lib/config/core.js:337:23)
at ConfigChain.addString (/usr/local/lib/node_modules/npm/node_modules/config-chain/index.js:244:8)
at Conf.<anonymous> (/usr/local/lib/node_modules/npm/lib/config/core.js:325:10)
at /usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16



/usr/local/lib/node_modules/npm/lib/npm.js:29
throw new Error('npm.load() required')
^

Error: npm.load() required
at Object.npm.config.get (/usr/local/lib/node_modules/npm/lib/npm.js:29:11)
at exit (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:58:40)
at process.errorHandler (/usr/local/lib/node_modules/npm/lib/utils/error-handler.js:387:3)
at emitOne (events.js:77:13)
at process.emit (events.js:169:7)
at process._fatalException (node.js:224:26)
Run Code Online (Sandbox Code Playgroud)

请提供任何解决方案。我完全坚持这个。由于这个问题,我无法启动我的应用程序并完成我的工作。

node.js

5
推荐指数
1
解决办法
5621
查看次数

Angular2 Unhandled Promise rejection:模板解析错误:

我是Angular2的新手,并创建了一个基本的应用程序.但是,当我运行应用程序时,它会出现一些错

以下是我正在处理的plunker的链接:https://plnkr.co/edit/vnnVJtA7HJS740tvslEI?p = preview

请提供解决方案,以便我可以从Angular2开始.以下是错误:

VM654 zone.js:388 Unhandled Promise rejection: Template parse errors:
'courses' is not a known element:
1. If 'courses' is an Angular component, then verify that it is part     
of this module.
2. If 'courses' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" 
to the '@NgModule.schemas' of this component to suppress this  
message. ("
<div>
  <h2>Hello {{name}}</h2>
  [ERROR ->]<courses></courses>
   </div>"): App@3:6 ; Zone: <root> ; Task: Promise.then ; Value:   
Error: Template parse errors:(…) Error: Template parse …
Run Code Online (Sandbox Code Playgroud)

angular

5
推荐指数
1
解决办法
2万
查看次数

启动“rethinkdb-restore”时出错:没有这样的文件或目录

我正在从本地系统导入在 AWS 服务器上移动的数据库备份

使用命令恢复 rethink db 时:

rethinkdb 恢复 /home/league_ally/rethinkexport.tar.gz

以下错误即将到来:

Error when launching 'rethinkdb-restore': No such file or directory
The rethinkdb-restore command depends on the RethinkDB Python driver,    
which must be installed.
If the Python driver is already installed, make sure that the PATH 
environment variable
includes the location of the backup scripts, and that the current  
user has permission to
access and run the scripts.
Instructions for installing the RethinkDB Python driver are available  
here:
http://www.rethinkdb.com/docs/install-drivers/python/
Run Code Online (Sandbox Code Playgroud)

rethinkdb

4
推荐指数
1
解决办法
1409
查看次数

标签 统计

angular ×1

node.js ×1

rethinkdb ×1