对于node.js / npm来说是一个新手,试图在我的带下获得一些新的前端工具。我在一个窗户上。我能做到:
npm install
该文件夹中有一个node.exe。所以,我相当肯定我的情况与典型情况不同,“它在你的道路上吗?”或“节点实际安装?”的情况。我D:\Users\saturdayplace\Documents\www\accntr>npm install gulp-sass --save-dev
npm WARN install Couldn't install optional dependency: Unsupported
npm WARN prefer global node-gyp@3.0.3 should be installed with -g
> node-sass@3.3.3 install D:\Users\saturdayplace\Documents\www\accntr\node_modules\node-sass
> node scripts/install.js
'node' is not recognized as an internal or external command, operable program or batch file.
accntr@0.0.0 D:\Users\saturdayplace\Documents\www\accntr
├─┬ gulp@3.9.0
│ └─┬ vinyl-fs@0.3.14
│ ├─┬ glob-stream@3.1.18
│ │ └─┬ through2@0.6.5
│ │ └── readable-stream@1.0.33
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├─┬ gulp-concat@2.6.0
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
└─┬ main-bower-files@2.9.0
└─┬ vinyl-fs@1.0.0
├─┬ merge-stream@0.1.8
│ └─┬ through2@0.6.5
│ └── readable-stream@1.0.33
├── object-assign@2.1.1
└─┬ through2@0.6.5
└── readable-stream@1.0.33
npm ERR! Windows_NT 10.0.10240
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "gulp-sass" "--save-dev"
npm ERR! node v4.1.2
npm ERR! npm v3.3.7
npm ERR! code ELIFECYCLE
npm ERR! node-sass@3.3.3 install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.3.3 install script 'node scripts/install.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/install.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.
还有很多其他东西(包括需要C(或其他)编译器的东西),但出于某种原因,sass-gulp只是不想玩得很好。这是它的作用:
type
不确定我在这里缺少什么。