草庐IT

npm-packages

全部标签

Linux 使用npm安装pnpm成功后提示“-bash: pnpm: command not found“

前提:安装好nodejs,并且使用以下命令创建了软连接(报错也是由于这个原因)#建立node软链接ln-s/usr/local/nodejs/bin/node/usr/local/bin#建立npm软链接ln-s/usr/local/nodejs/bin/npm/usr/local/bin原因分析:以上的命令的”/usr/local/nodejs/bin/node"是我解压nodejs的地址下的bin/node路径,后方路径是映射到的文件路径。在我们全局使用pnpm命令时,linux会在这个路径查找pnpm,如果没有对应上则会报类似于-bash:pnpm:commandnotfound的错。进

vue : 无法加载文件 C:\Users\xxx\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.

vue:无法加载文件C:\Users\Administrator\AppData\Roaming\npm\vue.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅https:/go.microsoft.com/fwlink/?LinkID=135170中的about_Execution_Policies。 因为在此系统上禁止运行该脚本,所以我们需要更改其运行策略,让系统允许我们脚本的运行:解决方式:通过powershell去解除Execution_Policies(运行策略)的限制。1.开始菜单或者小娜搜索输入powershell,powershellISE或者直接powershell

http - 戈朗 : core net/http package import errors

我克隆了gosourcecode使用gitclonehttps://go.googlesource.com/go进入我的~/godev/目录(如文档建议的那样在GOPATH之外)。我的$GOPATH是~/gocode我使用官方osx安装程序安装了go1.8.1。如果我进入~/godev/go/src/net/http并运行gotest,我会得到这些错误:h2_bundle.go:46:2:cannotfindpackage"golang_org/x/net/http2/hpack"inanyof:/usr/local/go/src/golang_org/x/net/http2/hpac

http - 戈朗 : core net/http package import errors

我克隆了gosourcecode使用gitclonehttps://go.googlesource.com/go进入我的~/godev/目录(如文档建议的那样在GOPATH之外)。我的$GOPATH是~/gocode我使用官方osx安装程序安装了go1.8.1。如果我进入~/godev/go/src/net/http并运行gotest,我会得到这些错误:h2_bundle.go:46:2:cannotfindpackage"golang_org/x/net/http2/hpack"inanyof:/usr/local/go/src/golang_org/x/net/http2/hpac

golang测试报错: cannot find package "github.com/stretchr/testify/assert" in any of:

我的导入如下所示:import("testing""github.com/stretchr/testify/assert")当我尝试运行“gotest”时,我收到错误消息:cannotfindpackage"github.com/stretchr/testify/assert"inanyof:/Users/[username]/go/src/github.com/[group_name]/[project_name]/vendor/github.com/stretchr/testify/assert(vendortree)/usr/local/go/src/github.com/str

golang测试报错: cannot find package "github.com/stretchr/testify/assert" in any of:

我的导入如下所示:import("testing""github.com/stretchr/testify/assert")当我尝试运行“gotest”时,我收到错误消息:cannotfindpackage"github.com/stretchr/testify/assert"inanyof:/Users/[username]/go/src/github.com/[group_name]/[project_name]/vendor/github.com/stretchr/testify/assert(vendortree)/usr/local/go/src/github.com/str

安装element-UI失败,报错Cannot read properties of null (reading ‘package‘)

通过npminstall安装依赖报如下错误。解决办法:尝试通过cnpminstall或 yarninstall即可解决。  把npminstallelement-ui改成cnpminstallelement-ui(不知道是不是因为当初安装vue-cli脚手架的时候是用的cnpm)题外话:    在我查找这个问题的解决办法的时候,一直找不到可行的解决办法,甚至连这个症状(reading后面是"package"而不是其他)的帖子都比较少,所以现在尽量多水字数,看能不能混到发文助手的流量扶持,让需要的人更容易看到。(然鹅发文助手还是警报说文章低质量.......)    我百度到的方法一般是两种:一

打开项目出现报错:An error occurred while resolving packages: Project has invalid dependencies: com.unity.

最近做unity项目,gitpull别人的项目,打开后出现这样的报错:Anerroroccurredwhileresolvingpackages:Projecthasinvaliddependencies:com.unity.visualeffectgraph:Package[com.unity.visualeffectgraph@12.1.10]cannotbefoundAre-importoftheprojectmayberequiredtofixtheissueoramanualmodificationof...翻译是:解析包时出错:项目具有无效的依赖项:com.unity.visual

CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package)

在ros中catkin_make功能包时遇到以下错误CMakeErrorat/opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83(find_package):Couldnotfindapackageconfigurationfileprovidedby"gazebo_ros"withanyofthefollowingnames:gazebo_rosConfig.cmakegazebo_ros-config.cmakeAddtheinstallationprefixof"gazebo_ros"toCMAKE_PREFIX_PATHors

解决npm install下载不下来包依赖,提示:An unknown git error occurred

将git上的项目拉到本地之后,进行npmi的时候发现下载不下来包依赖,并提示:Anunknowngiterroroccurred,如图所示:解决办法:1、使用下面的命令,把地址里的​​ssh://git@​​​换成​​https://​​gitconfig--globalurl.“https://”.insteadOfssh://git@2、重新npmi就可以了npmi如图: