小编Ran*_*shi的帖子

npm 安装失败并出现 404 错误(/@fortawesome%2fpro-regular-svg-icons - 未找到)尽管设置了令牌

修复此链接中未找到的私有包的故障后。

我陷入了错误“font Awesome”库未找到。以下是错误消息详细信息:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@fortawesome%2fpro-regular-svg-icons - Not found
npm ERR! 404 
npm ERR! 404  '@fortawesome/pro-regular-svg-icons@^5.15.2' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'data-qa-frontend'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, …
Run Code Online (Sandbox Code Playgroud)

ubuntu node.js npm

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

无法更改node-gyp使用的默认python版本?

当我运行该命令时,node-gyp rebuild我收到以下错误:

gyp info it worked if it ends with ok
gyp info using node-gyp@7.1.2
gyp info using node@9.6.1 | linux | x64
gyp info find Python using Python version 3.8.5 found at "/usr/bin/python3"
gyp WARN install got an error, rolling back install
gyp ERR! configure error 
gyp ERR! stack Error: ENOENT: no such file or directory, mkdir '/home/rando/.cache/node-gyp/9.6.1'
gyp ERR! System Linux 5.8.0-45-generic
gyp ERR! command "/home/rando/.nvm/versions/node/v9.6.1/bin/node" "/home/rando/.nvm/versions/node/v9.6.1/bin/node-gyp" "rebuild" "--python=/home/rando/.pyenv/versions/2.7.18/bin"
gyp ERR! cwd /home/rando/Desktop/git/master-node/node/browser_engines/src/browsers/webkit
gyp ERR! node …
Run Code Online (Sandbox Code Playgroud)

python node.js node-gyp

8
推荐指数
1
解决办法
8176
查看次数

尽管在 .npmrc 文件中设置了令牌,但由于找不到私有包,npm 安装失败

环境详细信息如下:

  • 乌班图20.04
  • 节点v10.22.1
  • npm 6.14.6

我有一个前端项目(react),我需要在其中创建 CI/CD 管道。由于在npm install.

错误如下:

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@org/package-name/-/package-name-0.1.24.tgz
npm ERR! 404 
npm ERR! 404  '@org/package-name@^0.1.24' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'project-name'
npm ERR! 404 
npm ERR! 404 Note that you can also install from a …
Run Code Online (Sandbox Code Playgroud)

ubuntu node.js npm

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

调用 mongo 存储库的保存方法时,不会调用 Mongo Date Custom Converter

我正在使用 linux Debian 9。我已经安装了 JDK 1.8。我使用的是maven版本3.6,springboot的版本是2.1。mongodb版本是3.6。

下面是我试图保存在 mongodb 中的 java 类的模型:

@org.springframework.data.mongodb.core.mapping.Document(collection = FileContentIndexQueue.ENTITY_COLLECTION_NAME)
@CompoundIndexes({
    @CompoundIndex(name = "state_timestamp", def = "{'state' : 1, 'timestamp': -1}")
})
@QuerySupertype
public class FileContentIndexQueue extends AbstractEntityNoLock {
        ...

    private ZonedDateTime timestamp;


    public FileContentIndexQueue() {
    }

    public FileContentIndexQueue(String fileId, String parentId, String childType, String indexName) {
        super();
        this.fileId = fileId;
        this.parentId = parentId;
        this.childType = childType;
        this.indexName = indexName;
        this.state = IndexingState.TODO;
        this.timestamp = ZonedDateTime.now();
    }

        ...

    public ZonedDateTime getTimestamp() {
        return timestamp;
    }

    public …
Run Code Online (Sandbox Code Playgroud)

mongodb java-8 spring-data-mongodb spring-boot

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