我想把当地的项目联系起来 test123
到 myproject
使用通常的方法:
cd testabc123
npm link
cd ../myproject
npm link testabc123
但是,我收到了错误消息:
npm ERR! code E404
npm ERR! 404 Not Found - GET http://registry.npmjs.org/testabc123 - Not found
npm ERR! 404
npm ERR! 404 'testabc123@*' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
有什么想法吗?我连接本地项目的方法似乎很普遍,大多数人都能成功地做到这一点。
1条答案
按热度按时间nnt7mjpx1#
文件夹结构
转到我的项目,然后就这样做
npm link ../test123
您可能需要管理员权限才能执行此操作。