# Heading
# cnpm : 无法加载文件 C:\Users\yuetx19586\AppData\Roaming\npm\cnpm.ps1,因为在此系统上禁止运行脚本。
- 以管理员身份运行 vscode;
- 执行:get-ExecutionPolicy,显示 Restricted,表示状态是禁止的;
- 执行:set-ExecutionPolicy RemoteSigned;
- 这时再执行 get-ExecutionPolicy,就显示 RemoteSigned;
# Failed to download Chromium r549031! Set “PUPPETEER_SKIP_CHROMIUM_DOWNLOAD” env variable to skip download
- npm config set puppeteer_download_host=https://npm.taobao.org/mirrors
- yarn install
# git
# git冲突:commit your changes or stash them before you can merge
- 处理冲突
git stash
git pull
git stash pop
1
2
3
2
3
接下来diff一下此文件看看自动合并的情况,并作出相应修改。
- 放弃本地修改,直接覆盖
git reset --hard
git pull
1
2
2
# Error while executing: C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh:...
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno ENOENT
npm ERR! enoent Error while executing:
npm ERR! enoent C:\Program Files\Git\cmd\git.EXE ls-remote -h -t ssh://git@github.com/boboidream/vuepress-bar.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
1
2
3
4
5
6
7
8
9
10
11
12
2
3
4
5
6
7
8
9
10
11
12
解决方法:cnpm install